`
511930751
  • 浏览: 40922 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

hive安装完成后遇到的问题

阅读更多

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

在启动hive是没有问题。

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

 

hive> show tables
    > ;
FAILED: Error in metadata: javax.jdo.JDOFatalDataStoreException: 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.NestedThrowables:
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.FAILED: Execution Error, return code 1 
from org.apache.hadoop.hive.ql.exec.DDLTask

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

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

分享到:
评论
1 楼 576017120 2013-04-24  
thanks ,提醒我了,发现自己ip写错了,诶。。。

相关推荐

Global site tag (gtag.js) - Google Analytics