克隆hadoop1输入:
beeline> !connect jdbc:hive2://hadoop01:10000
Connecting to jdbc:hive2://hadoop01:10000
Enter username for jdbc:hive2://hadoop01:10000: root
Enter password for jdbc:hive2://hadoop01:10000: ******
错误代码:
Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop01:10000: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)
解决办法:
发现是息屏重连之后,hadoop1没有重新开启 bin/hiveserver2 服务 在hadoop1 重新开启bin/hiveserver2 就可以啦