当前位置:   article > 正文

Hive打不开解决方案.The last packet sent successfully to the server was 0 milliseconds ago_hive the last packet sent successfully to the serv

hive the last packet sent successfully to the server was 0 milliseconds ago.
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

Caused by: java.net.ConnectException: 拒绝连接 (Connection refused)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

网上有很多种情况,有可能是MySQL崩了,需要重启MySQL,解决方案如下:

[root@hadoop102 hive]# service mysql status
MySQL is not running, but lock file (/var/lock/subsys/mysql[失败]ts
[root@hadoop102 hive]# service mysql start
Starting MySQL.                                            [确定]
  • 1
  • 2
  • 3
  • 4

然后重新启动Hadoop与Yarn,打开Hive即可。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/634772
推荐阅读
相关标签
  

闽ICP备14008679号