Dataphin集成管道任务报错:“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.”

问题描述

      在Dataphin中运行集成管道任务时,数据库数据源能够正常联通,端口也可以Telnet通,但是任务报错:“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.Exception when calling callable, 异常Msg:DataX无法连接对应的数据库,可能原因是:1) 配置的ip/port/database/jdbc错误,无法连接。2) 配置的username/password错误,鉴权失败”。

问题原因

        Mesos集群由多台服务器组成的,如果Telnet能连通,有可能是集群其中某一台服务器不能连接成功数据库导致。例如数据库的对应白名单没有添加。

解决方案

       查询出Mesos集群的IP地址,1.数据库侧检查白名单是否将集群IP添加完整;2.Mesos集群每台服务器测试与数据库连通性,是否服务器有端口、火眼拦截等限制。

适用于

  • Dataphin
  • 公共云独立部署 V3.6.1
阿里云首页 相关技术圈