sqoop mysql 拒绝连接_Sqoop 连接MySQL报错:拒绝连接 (Connection refused)

MarsJ老师,看你的Sqoop视频,按照你视频里的步骤一步步实现的,但是准备用sqoop连接mysql时出现错误。困惑了很久,还请老师解惑,给予指导。@MarsJ

log:

[root@bigdata opt]# ls -lt /opt/sqoop-1.4.6/lib/mysql-connector-java-5.1.45-bin.jar

-rwxrwxrwx. 1 root root 999810 12月 8 15:33 /opt/sqoop-1.4.6/lib/mysql-connector-java-5.1.45-bin.jar

[root@bigdata opt]# sqoop list-databases --connect jdbc:mysql://192.168.2.169:3360 --username root --password Tmp_123456

Warning: /opt/sqoop-1.4.6/bin/../../hbase does not exist! HBase imports will fail.

Please set $HBASE_HOME to the root of your HBase installation.

Warning: /opt/sqoop-1.4.6/bin/../../hcatalog does not exist! HCatalog jobs will fail.

Please set $HCAT_HOME to the root of your HCatalog installation.

Warning: /opt/sqoop-1.4.6/bin/../../accumulo does not exist! Accumulo imports will fail.

Please set $ACCUMULO_HOME to the root of your Accumulo installation.

Warning: /opt/sqoop-1.4.6/bin/../../zookeeper does not exist! Accumulo imports will fail.

Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.

17/12/08 15:41:29 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6

17/12/08 15:41:29 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.

17/12/08 15:41:30 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.

17/12/08 15:41:30 ERROR manager.CatalogQueryManager: Failed to list databases

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 sun.ref

你可能感兴趣的:(sqoop,mysql,拒绝连接)