猿问

hive启动出问题

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 failure

The 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就这样了,困在这个地方整整一天了,求教!


慕婉清6462132
浏览 986回答 1
1回答

慕慕森

可以参考stackoverflow上的这个回答一个一个检查一下
随时随地看视频慕课网APP

相关分类

Java
我要回答