Sqoop: CommunicationsException: Communications link failure

Hi ,

I am getting communication failure error when i tryto run below statement. Please help me to resolve the issue.

sqoop list-databases --connect “jdbc:mysql://ip-172-31-13-154:3306” --username sqoopuser -P

error:

ERROR sqoop.Sqoop: Got exception running Sqoop: 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.java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Thanks,
Naveen

@naveen,

Use the MySQL host as specified here