我按照步骤操作。
已在运行NiFi的Windows中下载了MiNiFi c2服务器。
使用名称为examplename iot-minifi-raspberry-agent.v1
MiNiFi c2固定属性端口-8080(U也正在使用端口10080)
更改了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
我的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
-----------------------------------*****-------------------
现在所有更改都已完成,我通过点击下面的URL检查我的更改是否正确完成
http://localhost:8080/c2/config?class=iot-minifi-raspberry-agent.v1&version=1
我可以看到yml正在显示,但MiNiFi中已经存在
c2 -->files folder
我在做什么错或我的理解在哪里不正确?
任何帮助将不胜感激。预先感谢
答案 0 :(得分:0)
您说您的minifi在其他计算机上运行,因此引导程序配置错误。 从中提取配置的主机名必须在运行minifi-c2服务器的主机名上,而不是本地。 这应该起作用。