Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to stop NiFi running in the background on Windows?

Highlighted

How to stop NiFi running in the background on Windows?

Expert Contributor

Hi, I didnt stop NiFi with the usual control+C command, when i turned my laptop back on NiFi was still running. How do i Shut it down? Thanks

7 REPLIES 7
Highlighted

Re: How to stop NiFi running in the background on Windows?

Contributor

Hi @Roger Young

What does status-nifi.bat report on the machine? Are there any Java processes that show up in your task manager? It's possible that if NiFi wasn't shutdown cleanly that it was unable to delete nifi.pid, nifi.status, and nifi.lock files and that the bootstrap logic is incorrectly assuming that means it is still running.

If you determine that there is not a NiFi process running (task manager, status-nifi above) you could try moving those files out to another directory and then starting NiFi.

Highlighted

Re: How to stop NiFi running in the background on Windows?

Expert Contributor

Hi, staus-nifi.bat shows NiFi is running. There is also java processes showing in task manager. NiFi is working fine, i just want to shut it down properly. I tried bin\nifi.sh stop but that doesnt work.

Highlighted

Re: How to stop NiFi running in the background on Windows?

Expert Contributor

i just killed the processes in task manager

Highlighted

Re: How to stop NiFi running in the background on Windows?

Explorer

Run "nifi.bat stop" from nifi bin folder and it would stop nifi.

Highlighted

Re: How to stop NiFi running in the background on Windows?

Expert Contributor

Hi, that command returns the following error

'nifi.bat' is not recognized as an internal or external command, operable program or batch file.

Highlighted

Re: How to stop NiFi running in the background on Windows?

Explorer

stop-nifi.zip

Try placing the stop-nifi.bat file from the attached zip file in your bin folder and running it.

Highlighted

Re: How to stop NiFi running in the background on Windows?

New Contributor

edit run-nifi.bat, replace 'run' in the last line with 'stop' and save it with stop-nifi.batch. Then run it the usual way. Then check status-nifi.bat

Don't have an account?
Coming from Hortonworks? Activate your account here