当前位置:   article > 正文

Hive连接报错:Could not open client transport with JDBC Uri: jdbc:hive2://192.168.216.128:10000_unable to get driver instance: jdbc:hive2://172.16

unable to get driver instance: jdbc:hive2://172.16.26.218: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
  • 1

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

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

[root@bigdata1 bin]# /moudle/hive-3.1.2/bin/hiveserver
    声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/424433
    推荐阅读
    相关标签
      

    闽ICP备14008679号