Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

beeline connect

avatar
Master Collaborator

Hi:

After type this, i cant connect to hive metastore, why the connection is closed??

5: jdbc:hive2://lnxbig05.cajarural.gcr:10000 (closed)> !connect jdbc:hive2://lnxbig05.cajarural.gcr:10000 **** **** org.apache.hive.jdbc.HiveDriver;
Connecting to jdbc:hive2://lnxbig05.cajarural.gcr:10000
org/apache/hive/jdbc/HiveDriver;
6: jdbc:hive2://lnxbig05.cajarural.gcr:10000 (closed)>
1 ACCEPTED SOLUTION

avatar
Master Collaborator

Thanks its working now 🙂

View solution in original post

5 REPLIES 5

avatar
Master Mentor

you don't need to specify class HiveDriver after password @Roberto Sancho

avatar
Master Mentor
@Roberto Sancho

This will save you lot of time https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_dataintegration/content/beeline-vs-hive-...

you can type beeline

provide the following line and it will prompt your username and password

!connect jdbc:hive2://<host>:<port>/<db> 

avatar
Master Collaborator

Thanks its working now 🙂

avatar
Master Mentor

you can accept one of the answers to close the thread @Roberto Sancho

avatar
Master Mentor

@Roberto Sancho that's not what I meant :). Which of the answers helped you resolve the problem, mark that answer as best. Other users have no idea what worked what didn't. Also, you only get points for best answer if someone else accepts your answer.