org.apache.hadoop.mapred.TaskAttemptListenerImpl: Task: attempt_1466646282939_0010_m_000002_0 - exited : java.lang.RuntimeException: java.lang.RuntimeException: 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.

hortonworks.com | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Sqoop list database works but not sqoop import for MySql - Hortonworks

    hortonworks.com | 7 months ago
    org.apache.hadoop.mapred.TaskAttemptListenerImpl: Task: attempt_1466646282939_0010_m_000002_0 - exited : java.lang.RuntimeException: java.lang.RuntimeException: 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. org.apache.hadoop.mapred.TaskAttemptListenerImpl

      Task: attempt_1466646282939_0010_m_000002_0 - exited : java.lang.RuntimeException: java.lang.RuntimeException: 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.mapreduce.db.DBInputFormat.setConf()
    2. org.apache.sqoop
      DBInputFormat.setConf
      1. org.apache.sqoop.mapreduce.db.DBInputFormat.setConf(DBInputFormat.java:167)
      1 frame
    3. Hadoop
      ReflectionUtils.newInstance
      1. org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:76)
      2. org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:136)
      2 frames
    4. Hadoop
      YarnChild$2.run
      1. org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:749)
      2. org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
      3. org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
      3 frames
    5. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:422)
      2 frames
    6. Hadoop
      UserGroupInformation.doAs
      1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1709)
      1 frame
    7. Hadoop
      YarnChild.main
      1. org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
      1 frame