Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 06-21-2017 02:57 PM
I have a cluster of lets say 3 NiFi nodes and I would like to make a configuration change, what are the steps to do a graceful restart of each node one by one?
using "service nifi stop" and "service nifi start"
I always get the following output -
2017-06-20 23:19:04,097 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi has accepted the Shutdown Command and is shutting down now 2017-06-20 23:19:04,141 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:06,145 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:08,149 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:10,153 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:12,157 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:14,162 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:16,167 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:18,171 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:20,176 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:22,180 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:24,184 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2017-06-20 23:19:24,200 WARN [main] org.apache.nifi.bootstrap.Command NiFi has not finished shutting down after 20 seconds. Killing process. 2017-06-20 23:19:24,218 INFO [main] org.apache.nifi.bootstrap.Command NiFi has finished shutting down.
I would rather not have NiFi killed if it is in the middle of something, is this to be expected?
Created 06-21-2017 08:07 PM
Any component, custom or not, which is not responding in a timely manner to lifecycle calls such as when it is unscheduled will do this. I've seen it quite a bit lately as well. We should consider listing thread titles or something that have it as that will help spot the culprit pretty quickly.
Created 06-21-2017 06:44 PM
Do you have any custom components deployed?
Created 06-21-2017 08:07 PM
Any component, custom or not, which is not responding in a timely manner to lifecycle calls such as when it is unscheduled will do this. I've seen it quite a bit lately as well. We should consider listing thread titles or something that have it as that will help spot the culprit pretty quickly.
Created 06-22-2017 11:32 PM
currently there is no way to see what is holding it up?
Created 06-23-2017 05:23 PM
You can try a thread dump (with jstack or nifi.sh dump) while it is waiting to shut down, you may be able to spot the culprit in the output.
Created 04-12-2018 01:37 PM
I have a similar problem and I added a thread dump in this separate question that hasn't been answered yet:
Any help would be greatly appreciated.
Created 06-21-2017 10:25 PM
I have no custom modules deployed.