当前位置:   article > 正文

hive安装完成后遇到的问题

hive 报错 the driver has not received any packets from the server

安装好hive后,使用mysql存储元数据。

在启动hive是没有问题。

使用hive命令:show tables;是会出现以下错误。

 

  1. hive> show tables
  2. > ;
  1. FAILED: Error in metadata: javax.jdo.JDOFatalDataStoreException: Communications link failure
  2. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
  3. any packets from the server.NestedThrowables:
  4. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  5. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
  6. any packets from the server.FAILED: Execution Error, return code 1
  7. from org.apache.hadoop.hive.ql.exec.DDLTask

 查遍了google和baidu没有找到解决办法。最后是改了conf下的hive-site.xml文件中的数据库连接。

把ip改成了localhost。再启动hive就对了。。。

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

闽ICP备14008679号