beeline reports an error jdbc:hive2://hadoop102:10000 when connecting to hiveserver2. It reports an error jdbc:hive2://hadoop102:10000: Invalid status72

I configured

The hiveserver2 client was started through nohup hive --service hiveserver2 >/dev/null 2>&1 &.
When connecting to the beeline client bin/beeline -u jdbc:hive2://hadoop102:10000 -n lxy, an error of Invalid status72 was reported.

Solution:

I found by checking the hive.log log that the address has been used

 I used the netstat -apn | grep 10000 command to check the ports and found that port 10000 was being occupied.

 Kill the 10000 port through the sudo fuser -k -n tcp 10000 command and connect again

After I close the virtual machine, this port will be opened again the next time I open the virtual machine, and I will have to close the port again.

 Another problem. Run the following two commands: Change lxy to your own user. 

Then connect hiveserver2 again: Success

Guess you like

Origin blog.csdn.net/weixin_59055372/article/details/131501657
Recommended