[英]Not able to get the nifi processor group status
I am new to Nifi.我是尼菲的新手。 I have define a processor group in Nifi and I have started the dataflow.
我已经在 Nifi 中定义了一个处理器组,并且我已经启动了数据流。
From the backend, how can I check the status of the processor group whether it is running or not?.从后端,如何检查处理器组的状态是否正在运行?
I tried我试过了
/bin/nifi.sh status
But it only gives the overall nifi status whether it is running or not但它只给出整体 nifi 状态,无论它是否正在运行
you can't see status of a process group because process groups do not have status.您看不到进程组的状态,因为进程组没有状态。 Nifi just adds a added log like this
Nifi 只是添加了一个这样的日志
2021-04-09 13:26:44,766 INFO [main] o.a.nifi.groups.StandardProcessGroup StandardProcessGroup[identifier=feffff20-c806-305a-5d38-2b8def09bebe] added to StandardProcessGroup[identifier=1be26a7f-0175-1000-6d70-e5784c0dde33]
you can see the IDs in 'Operate' table on the right side of canvas.您可以在 canvas 右侧的“操作”表中看到 ID。
On the other hand processor based logs can be seen另一方面,可以看到基于处理器的日志
2021-04-09 13:40:59,290 INFO [Timer-Driven Process Thread-2] o.a.n.c.s.TimerDrivenSchedulingAgent Scheduled QuickFixInitiator[id=31ee54ea-5043- 3415-6f6e-4b8df429188f] to run with 3 threads
2021-04-09 13:45:31,164 INFO [Timer-Driven Process Thread-2] o.a.n.c.s.TimerDrivenSchedulingAgent Stopped scheduling QuickFixInitiator[id=31ee54ea-5043-3415-6f6e-4b8df429188f] to run
also via rest api也通过 rest api
http://localhost:8080/nifi-api/processors/31ee54ea-5043-3415-6f6e-4b8df429188f
It is hard to follow nifi rest api doc All the UI requests go through rest api so the best way to learn it watching UI requests in developer console -> network tab It is hard to follow nifi rest api doc All the UI requests go through rest api so the best way to learn it watching UI requests in developer console -> network tab
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.