Hive连接报错:Could not open client transport with JDBC Uri: jdbc:hive2://192.168.216.128:10000

Hive连接报错:
Could not open client transport with JDBC Uri: jdbc:hive2://192.168.216.128:10000: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
Connection refused: connect
Connection refused: connect

解决方法:查看hiveserver2是否启动成功,查看10000端口

[root@bigdata1 lib]# netstat -anp|grep 10000

没有输出,确定是hiveserver2没有启动成功。

启动hiveserver2
如下所示,hiveserver2会启动几个Hive Session ID

[root@bigdata1 bin]# /moudle/hive-3.1.2/bin/hiveserver

你可能感兴趣的:(大数据,大数据平台二次开发,Hive连接报错)