1

我已经建立了一个简单的流程组。它生成一个包含一些随机内容的 FlowFile,并将其发送到 Nifi Remote Process Group。这个远程进程组被配置为将 FlowFile 发送到 localhost,或者在这种情况下发送到我自己的主机名(我也尝试过 localhost)。

在此之后,FlowFile 应该出现在“From MiNiFi”输入端口并被发送到 LogAttribute。没什么特别的。

这是进程组的屏幕截图

我配置为使用 RAW,但使用 HTTP 它既不工作。

我正在使用 apache/nifi docker 映像,并没有更改 nifi.properties 和 authorizers.xml 中的某些内容,但当然我为您提供了两个:

nifi.properties

授权者.xml

发生的错误是这样的:

WARNING org.apache.nifi.remote.client.PeerSelector@40081613 Unable to refresh Remote Group´s peers due to Unable to communicate with remote Nifi cluster in order to determine which nodes exist in the remote cluster

我希望你能帮助我。我在这个问题上浪费了太多时间 XD

4

1 回答 1

2

在 nifi.properties 你有 nifi.web.http.host=f4f40c87b65f 这意味着 NiFi 正在侦听请求的主机名是 f4f40c87b65f 这意味着你的 RPG 的 URL 必须是http://f4f40c87b65f:8080/nifi

于 2018-10-18T13:00:11.740 回答