15/04/2407:00:15INFOmanager.MySQLManager:PreparingtouseaMySQLstreamingresultset.15/04/2407:00:15INFOtool.CodeGenTool:Beginningcodegeneration15/04/2407:01:19ERRORmanager.S...
15/04/24 07:00:15 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
15/04/24 07:00:15 INFO tool.CodeGenTool: Beginning code generation
15/04/24 07:01:19 ERROR manager.SqlManager: Error executing statement: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 1,429,884,079,949 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 1,429,884,079,949 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Caused by: java.net.ConnectException: Connection timed out
15/04/24 07:01:19 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: No columns to generate for ClassWriter
at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1095)
我试过还连接驱动和改mysql的配置,好像都没有用啊
展开