0

I need the ability to stop MiNiFi running on a windows machine. Here: https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.4.0/minifi-quick-start/content/stopping_minifi.html

It tells me to use:

bin/minifi.sh stop

or

sudo service minifi stop

Unfortunately, I'm using Windows and those commands won't work, not even with Cygwin.

Any ideas, or is my only option to figure our what process(s) in task manager to kill?

user3335999
  • 392
  • 1
  • 2
  • 17
  • I don't think there is going to be a better option to stop MiNiFi on a windows machine then to terminate the associated processes in task manager. Unfortunately, I don't know which processes those are. Another option is to reboot your PC. – user3335999 May 22 '19 at 20:17
  • Not so sure the docs are trustworthy, this wasn't made to run well on a Windows machine. But it recommends using Control Panel > Administrative Tools > Services. – Hans Passant Nov 21 '19 at 09:14

2 Answers2

0

The best way to manage MiNiFi on a windows machine is to create a wrapper for it to run as a windows service. The shell commands won't work on a PC so your only option to stop minifi is to reboot your machine.

user3335999
  • 392
  • 1
  • 2
  • 17
0

The best way is to reboot your machine, but there is also a workaround.

When you start the nifi in command prompt in Windows then do not close that Window. Whenever you want to close nifi, go to that command prompt and press Ctrl+C. This works and maybe you can press it two or three times because sometimes it takes time to detect Ctrl+C is pressed.

Jitesh Prajapati
  • 2,533
  • 4
  • 29
  • 51