【问题标题】:Nifi - Remote Process Group - PeerSelectorNifi - 远程进程组 - PeerSelector
【发布时间】:2018-10-18 07:31:42
【问题描述】:

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

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

我配置为使用 RAW,但使用 HTTP 却无法正常工作。

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

nifi.properties

authorizers.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

【问题讨论】:

    标签: cluster-computing apache-nifi peer communicate remote-process


    【解决方案1】:

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

    【讨论】:

    • 我的 nifi 在 Docker 容器中运行。我认为 f4f40c87b65f 是 Docker 容器 ID。
    • 如果是这样,那么你的 nifi.web.http.host 值是错误的,需要是主机名
    • 感谢您帮助我解决了连接问题
    • 但是为什么我可以使用localhost在浏览器中访问NiFi,但是集群需要有容器URL?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多