0

我正在构建一个 NiFi 数据流,我需要从 MySql 数据库中获取数据更改,所以我想使用 CaptureChangeMySQL 处理器来做到这一点。

运行 CaptureChangeMySQL 处理器时出现以下错误,但看不到是什么原因造成的:

Failed to process session due to Could not connect binlog client to any of the specified hosts due to: BinaryLogClient was unable to connect in 10000ms: org.apache.nifi.processor.exception.ProcessException: Could not connect binlog client to any of the specified hosts due to: BinaryLogClient was unable to connect in 10000ms

我启用了以下控制器服务:

  • 分布式地图缓存客户端服务
  • 分布式地图缓存服务器

但我不确定它们是否配置正确:

DistributedMapCacheServer 属性

DistributedMapCacheClientService 属性

在 MySql 中,我启用了 log_bin 变量,默认情况下没有。我检查了一下,确实在数据更改时创建了一些 binlog 文件。

所以我认为问题在于控制器服务以及它们如何连接,我不清楚。

我搜索了有关如何使用此 NiFi 处理器的教程,但找不到如何修复此错误。我主要看这个:https ://community.hortonworks.com/articles/113941/change-data-capture-cdc-with-apache-nifi-version-1-1.html但它没有帮助我。

有没有人已经使用这个处理器来做 CDC?

先感谢您。

4

1 回答 1

0

我发现出了什么问题:我试图连接到 CaptureChangeMySQL 处理器的 MySQL 主机的错误端口:x

于 2019-05-28T07:51:38.237 回答