先开启服务端:

nohup hive --service metastore &

nohup  hive --service hiveserver2 &

进入beeline:

beeline -u jdbc:hive2://localhost:10000 -n root -p diagbot####

相关文章: