Support Questions
Find answers, ask questions, and share your expertise

Cannont connect Beeline shell

Cannont connect Beeline shell

New Contributor

Hello, I am a beginner. I was trying one of the handson where I need to connect to beeline however it fails to connect.

 

[cloudera@quickstart ~]$ beeline -u jdbc:hive2://quickstart:10000/default -n admin -d org.apache.hive.jdbc.HiveDriver
Connecting to jdbc:hive2://quickstart:10000/default
Error: Could not open client transport with JDBC Uri: jdbc:hive2://quickstart:10000/default: java.net.ConnectException: Connection refused (state=08S01,code=0)
Beeline version 1.1.0-cdh5.4.2 by Apache Hive
0: jdbc:hive2://quickstart:10000/default (closed)> 

 

 

Your help is much appreciated. Thanks, Manoj

4 REPLIES 4

Re: Cannont connect Beeline shell

Master Collaborator
I'd check that Hive Server 2 is running:

sudo service hive-server-2 status

If it's not, restart it:

sudo service hive-server-2 start

If the problem persists, I'd check the logs in /var/log/hive for errors,
and keep in mind that Hive Server 2 may be failing simply because other
services it depends on are failing, like hive-metastore, or one of the
hadoop services. If you've run the script in the VM to migrate to CM, then
this would be easier via the web-based GUI, and the tutorial would show you
how to check the status of the required services in that case.

Re: Cannont connect Beeline shell

Master Collaborator
I'd check that Hive Server 2 is running:

sudo service hive-server-2 status

If it's not, restart it:

sudo service hive-server-2 start

If the problem persists, I'd check the logs in /var/log/hive for errors,
and keep in mind that Hive Server 2 may be failing simply because other
services it depends on are failing, like hive-metastore, or one of the
hadoop services. If you've run the script in the VM to migrate to CM, then
this would be easier via the web-based GUI, and the tutorial would show you
how to check the status of the required services in that case.

Re: Cannont connect Beeline shell

New Contributor

Thank you. I will check that.

Re: Cannont connect Beeline shell

New Contributor

I have replied to the similar question. Please refer to the link https://community.cloudera.com/t5/Support-Questions/Cannot-connect-to-beeline/m-p/301153.

Hope it helps.