0

我按照步骤。

  1. 在运行我的 NiFi 的 Windows 中下载了 MiNiFi c2 服务器。

  2. 使用给定名称的 NiFi UI 创建了一个模板examplename iot-minifi-raspberry-agent.v1

  3. Canged MiNiFi c2 属性端口 - 8080(U 也正在获取端口 10080 已在使用中)

  4. 更改了 minifi-c2-context.xml 属性

    <constructor-arg> <value>http://localhost:9090/nifi/</value> </constructor-arg> in this url my nifi is working,so this only changed
    
  5. 我的 MiNiFi 在不同的 Windows 机器上运行。在那里我改变了引导属性,如下所示

    ---------------------------------------*****--------------
    # Hostname on which to pull configurations from
    nifi.minifi.notifier.ingestors.pull.http.hostname=localhost
    
    # Port on which to pull configurations from
    nifi.minifi.notifier.ingestors.pull.http.port=8080
    
    # Path to pull configurations from
    minifi.notifier.ingestors.pull.http.path=/c2/config
    
    # Query string to pull configurations with
    nifi.minifi.notifier.ingestors.pull.http.query=class=iot-minifi-raspberry-agent ----// name of my template ?? should i use version also like .v1
    
    # Period on which to pull configurations from, defaults to 5 minutes if commented out nifi.minifi.notifier.ingestors.pull.http.period.ms=60000
    
    -----------------------------------*****-------------------
    
  6. 现在所有更改都已完成我通过点击以下 URL 检查我的更改是否正确完成

    http://localhost:8080/c2/config?class=iot-minifi-raspberry-agent.v1&version=1
    

    我可以看到 yml 正在显示,但 MiNiFi 中已经存在

    c2 -->files folder
    

我做错了什么或我的理解不正确?

任何帮助将非常感激。提前致谢

4

1 回答 1

0

你说你的 minifi 在不同的机器上运行,所以你的引导配置是错误的。要从中提取配置的主机名必须是运行 minifi-c2 服务器的主机名,而不是本地主机名。这应该有效。

于 2019-11-21T06:43:19.353 回答