原文:异常解决:Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

异常描述 这个异常通常有如下信息: com.mysql.jdbc.exceptions.jdbc .CommunicationsException: Communications link failure The last packet successfully received from the server was , milliseconds ago. The last packet se ...

2019-10-12 13:13 0 2912 推荐指数:

查看详情

sqoop从mysql导数据到hive报错:Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

背景 报错如下: 从报错可以看出,是数据库连接失败,很常见的问题,但是从本地是可以直连mysql的。 因为sqoop导数据的时候,默认会启动4个map task,这4个map task会随机启动在不动的datanode上,所以在想,是不是因为其他节点没有权限访问mysql导致。 但是需要 ...

Wed Sep 11 22:04:00 CST 2019 1 746
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM