为了账号安全,请及时绑定邮箱和手机立即绑定

hive启动出问题

hive启动出问题

慕婉清6462132 2018-08-08 11:14:40
Nested Throwables StackTrace:java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://192.168.1.148:3306/hive?createDatabaseIfNotExist=true, username = hadoop. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)。。。Hadoop装好了,没问题,mysql也装了,也没出现问题,装了hive后在命令行输入hive就这样了,困在这个地方整整一天了,求教!
查看完整描述

1 回答

?
慕慕森

TA贡献1856条经验 获得超17个赞

可以参考stackoverflow上的这个回答一个一个检查一下

查看完整回答
反对 回复 2018-08-21
  • 1 回答
  • 0 关注
  • 985 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信