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!
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!
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.
If everything is OK, then you should connect using:
beeline -u jdbc:hive2://{IP or servername}:10000
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
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!
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.
If everything is OK, then you should connect using:
beeline -u jdbc:hive2://{IP or servername}:10000