beeline not able to connect to hiveserver2

前端 未结 7 1771
孤城傲影
孤城傲影 2021-02-07 13:31

I have a CDH 5.3 instance. I start the hive-server2 by first starting the hive-metastore and then the hive-server from command line. After this I use beeline to connect to my

7条回答
  •  野的像风
    2021-02-07 14:04

    The following worked for me. If you installed and configured hive for the first time and trying to connect from beeline, make sure you start the hive service using the following command in the current terminal

     >hive --service hiverserver2 &
    

    The process id for Hiverver2 appears in the console.Then retry connecting to hive from beeline using different terminal:

     >beeline -u "jdbc:hive2://localhost:10000/default" -n  -p  -d "org.apache.hive.jdbc.HiveDriver"
    

提交回复
热议问题