sqoop连接不上mysql_Sqoop连接mysql报错-已解决

报错

使用连接测试命令:

sqoop list-databases --connect jdbc:mysql://master:3306/ --username bee -P

报如下错误:

18/12/02 20:11:44 ERROR manager.CatalogQueryManager: Failed to list databases

com.mysql.cj.jdbc.exceptions.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 com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)

at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)

at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:835)

at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:455)

at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240)

at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegist

你可能感兴趣的:(sqoop连接不上mysql)