sqoop连接MySQL睡眠_Sqoop jdbc连接Mysql Connection timed out (Connection timed out) 解决方法...

当在Linux环境中使用Sqoop尝试连接到Windows系统的MySQL时,遇到连接超时的问题。错误日志显示了尝试连接失败的信息。通过调整配置或检查网络连接,问题最终得到解决。
摘要由CSDN通过智能技术生成

Sqoop 安装在Linux 环境,Mysql 安装在Windows系统,本地连接没有问题,但在Sqoop连接时报连接超时,如下:https://www.cndba.cn/dave/article/3301

https://www.cndba.cn/dave/article/3301https://www.cndba.cn/dave/article/3301

https://www.cndba.cn/dave/article/3301https://www.cndba.cn/dave/article/3301https://www.cndba.cn/dave/article/3301https://www.cndba.cn/dave/article/3301

[dave@www.cndba.cn lib]$ sqoop list-databases --connect jdbc:mysql://192.168.56.2:3306/ --username root -P

Warning: /home/hadoop/sqoop/../hbase does not exist! HBase imports will fail.

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

Warning: /home/hadoop/sqoop/../hcatalog does not exist! HCatalog jobs will fail.

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

Warning: /home/hadoop/sqoop/../accumulo does not exist! Accumulo imports will fail.

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

2019-03-02 23:15:14,946 INFO sqoop.Sqoop: Running Sqoop version: 1.4.7

Enter password:

2019-03-02 23:15:19,741 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.

2019-03-02 23:17:27,246 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.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)

at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990)

at

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值