cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

How run the Apache Zookeeper server as Background service in Windows

vi1
15-Moonstone
15-Moonstone

How run the Apache Zookeeper server as Background service in Windows

Hi,

I am making Thingworx HA.

I was able to run the Zookeeper server from command prompt on Windows.
I would like to run as a background service instead and also start automatically without start manually or Login system.
I was able to create the service using below command.
sc.exe create ZookeeperService binPath= “C:\zookeeper\apache-zookeeper-3.5.5\bin\zkServer.cmd

Service is created but it is not started and an the getting error. Please refer the attached screenshot

 

Could you please help on how to run background service.

Thank you in Advance.

Latha

1 ACCEPTED SOLUTION

Accepted Solutions
vi1
15-Moonstone
15-Moonstone
(To:vi1)

I am able to do with NSSM. Thank you for your suggestions.

 

Regards,

Latha

View solution in original post

5 REPLIES 5
raluca_edu
17-Peridot
(To:vi1)

Hi,

 

You can try with AlwaysUp as in this link: https://www.coretechnologies.com/products/AlwaysUp/Apps/RunZooKeeperAsAWindowsService.html

 

Hope it helps,

Raluca Edu

vi1
15-Moonstone
15-Moonstone
(To:raluca_edu)

Hi,

Thank you for replay.

Alwaysup is not free software.

Is there any otherway i can run Zookeeper as background service.Service is created as Background but not able to run the service. 

I am getting the error "Error 1053: The service did not respond to the start or control request in a timely fashion".

 

I have updated "ServicesPipeTimeout" and also did the ccleaner. Still getting error.

Could you help me on how to resolve. 

raluca_edu
17-Peridot
(To:vi1)

Hi,

 

You can also try with NSSM: https://nssm.cc/download As far as I know, this one is free.

Can you check Events log and search for the error you have to get more messages related to the error?

 

Thank you,

Raluca Edu

 

vi1
15-Moonstone
15-Moonstone
(To:raluca_edu)

Thank you for information. I will try your options.

 

Regards,

Latha

vi1
15-Moonstone
15-Moonstone
(To:vi1)

I am able to do with NSSM. Thank you for your suggestions.

 

Regards,

Latha

Top Tags