Error in running hive

2.3k views Asked by At

When I run following commmand in hive

$HIVE_HOME/bin/beeline -u jdbc:hive2://

Following error is shown attached in the link here.

please help!

2

There are 2 answers

0
m.semnani On
  1. At First check if your hive server is listening on port 10000?

    netstat -an | grep 10000

    if not! go to /tmp/{username}/hive.log and see what is wrong!

  2. If hive server is up and running, then check the schema that you were created!

    schematool -validate -dbType -verbose

    if the schema has problems, then you should init the schema again.

  3. If everything is OK, then you should connect using:

    beeline -u jdbc:hive2://{IP or servername}:10000

0
Murari Goswami On

You can also try one liner as per below.

beeline -u "jdbc:hive2://ip-hive-server-ip separated with hifen>:10000/default;principal=driver-details" -n $USER