sqoop连接mysql出现 Communications link failure
来源:互联网 发布:php支付接口开发demo 编辑:程序博客网 时间:2024/06/16 03:09
错误
Error: java.lang.RuntimeException: java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe 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(DBInputFormat.java:167) at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73) at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:746) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341) at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:163) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1656) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)Caused by: java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
解决
网上找了不少资料,都说是mysql连接池的问题,但是用jdbc却可以连接,应该不是连接池的问题,也没有去修改
最后将mysql与sqoop分配在不同的节点,顺利解决
0 0
- sqoop连接mysql出现 Communications link failure
- MySQL连接超时Communications link failure
- MySQL连接超时Communications link failure
- mysql: Communications link failure
- mysql Communications link failure
- ubuntu16.04下eclipse使用 jdbc连接本地mysql出现:Communications link failure错误
- mysql: Communications link failure解决
- mysql: Communications link failure解决
- communications link failure MySQL ibatis
- 解决mysql:Communications link failure
- mysql异常:Communications link failure
- MySQL Communications link failure问题
- 远程连接mysql的“Communications link failure”错误解决方案
- Hibernate连接池维护mysql异常:Communications link failure
- MySQL连接池“Communications link failure”的问题
- 连接数据库报错 Communications link failure
- mysql 中Communications link failure的解决方法
- mysql 中Communications link failure的解决方法
- 7.1JAVA异常处理
- java中判断字符串是否为数字的方法
- 什么是视频结构化?
- 【九度OJ】题目1163:素数 解题报告
- C语言练习1
- sqoop连接mysql出现 Communications link failure
- 文本处理工具
- C++中的深浅拷贝和写时拷贝
- 单向链表的基本操作
- retrofit简单的网络请求
- [Aha]城市地图
- android Json解析
- 怎么加载so包
- CentOS7设置NTP开机启动失败,ceph告警