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.

sqoop-user | prabhu k | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    import mysql db table to HDFS

    sqoop-user | 5 years ago | prabhu k
    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.

    Root Cause Analysis

    1. 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 org.apache.sqoop.manager.CatalogQueryManager.getColumnNames()
    2. org.apache.sqoop
      Sqoop.run
      1. org.apache.sqoop.manager.CatalogQueryManager.getColumnNames(CatalogQueryManager.java:162)
      2. org.apache.sqoop.orm.ClassWriter.getColumnNames(ClassWriter.java:1207)
      3. org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1062)
      4. org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:82)
      5. org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:367)
      6. org.apache.sqoop.tool.ImportTool.run(ImportTool.java:453)
      7. org.apache.sqoop.Sqoop.run(Sqoop.java:145)
      7 frames
    3. Hadoop
      ToolRunner.run
      1. org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      1 frame
    4. org.apache.sqoop
      Sqoop.main
      1. org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)
      2. org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)
      3. org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)
      4. org.apache.sqoop.Sqoop.main(Sqoop.java:238)
      4 frames
    5. com.cloudera.sqoop
      Sqoop.main
      1. com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)
      1 frame