beeline连接hive2的时候报错,报错信息为Error: Could not open client transport with JDBC Uri: jdbc:hive2://192.168.81.131:10000: java.net.ConnectException: 拒绝连接 (Connection refused) (state=08S01,code=0)
google搜了很久试了很多方法都不行,后来在log里找到好像是metastore的缘故,错误原因是metastore没有启动。
解决方法:在命令行输入"hive --service metastore &"启动metastore,然后再在beeline连接hive2就行了。



本文解决了一个常见的问题:使用beeline连接hive2时出现的“拒绝连接”错误。通过检查log文件发现,错误根源在于metastore未启动。文章提供了详细的解决步骤,即在命令行中启动metastore服务,之后即可成功使用beeline进行连接。
8683





