We have been using ES as a service for at least last 6 months using yajsw
(http://yajsw.sourceforge.net/) on Windows 2003 server and Windows 7.
We usually configure two nodes (one master and one data) in each physical
server, and both are registered as separate service in each server. This
was essential for our server as our physical servers are remote machines
and we use Windows Remote Desktop (multiple users, multiple terminals) to
connect to them. So, running ES from any particular logged in user was
problematic for us.
It is pretty easy enough. Following are the steps.
start your elasticsearch.bat
Grab the java pid using ProcessExplorer
Use the pid to generate a yajsw config file.
Change service name in the config file.
Shut down elasticsearch.
Register the service using the config file.
Start the service from Windows services screen.
Keep the config file safe, it will be necessary for uninstalling the
service, if necessary.
Hope this helps.
In case u need any more details, please ask.
I tried installing the service using the procedure on -
I was able to install the service successfully. However, I see some
stability issues with the service. The service stops abruptly with Java
fatal error.. Any of you guys experienced this issue?
I am looking for alternative solution now.. @Sujoy, Do you have more info
on the service you created? Do you mind sharing, the config file, other
settings you had used for your service, please.
On Monday, February 11, 2013 6:35:14 PM UTC-8, Mxims wrote:
Radhu & Sujoy,
Thank you so much for your help on this. I will checkout these options and
will let you know how it goes.
I was able to install the service successfully. However, I see some
stability issues with the service. The service stops abruptly with Java
fatal error.. Any of you guys experienced this issue?
I am looking for alternative solution now.. @Sujoy, Do you have more info
on the service you created? Do you mind sharing, the config file, other
settings you had used for your service, please.
On Monday, February 11, 2013 6:35:14 PM UTC-8, Mxims wrote:
Radhu & Sujoy,
Thank you so much for your help on this. I will checkout these options
and will let you know how it goes.
We have been running the service for more than a week now. So far it has
been very stable. However I see one issue with the service, the Windows
Service doesn't start automatically when the system reboots. If I start it
manually after the system rebbot, it does start without any issues. I have
configured the service's 'Startup Type' to be 'Automatic', and 'Log On As'
to be 'Local System". Did you guys have any similar issues? Any pointeres??
Thanks
On Tuesday, February 26, 2013 10:31:27 AM UTC-8, Mxims wrote:
I was able to install the service successfully. However, I see some
stability issues with the service. The service stops abruptly with Java
fatal error.. Any of you guys experienced this issue?
I am looking for alternative solution now.. @Sujoy, Do you have more info
on the service you created? Do you mind sharing, the config file, other
settings you had used for your service, please.
On Monday, February 11, 2013 6:35:14 PM UTC-8, Mxims wrote:
Radhu & Sujoy,
Thank you so much for your help on this. I will checkout these options
and will let you know how it goes.
Is it somehow related to windows credentials?
Can u make the service run under any user account upon restart by providing
the log on credentials in the service?
-- Sujoy.
On Thursday, March 7, 2013 11:14:43 PM UTC+5:30, Mxims wrote:
Sujoy,
We have been running the service for more than a week now. So far it has
been very stable. However I see one issue with the service, the Windows
Service doesn't start automatically when the system reboots. If I start it
manually after the system rebbot, it does start without any issues. I have
configured the service's 'Startup Type' to be 'Automatic', and 'Log On As'
to be 'Local System". Did you guys have any similar issues? Any pointeres??
Thanks
On Tuesday, February 26, 2013 10:31:27 AM UTC-8, Mxims wrote:
I was able to install the service successfully. However, I see some
stability issues with the service. The service stops abruptly with Java
fatal error.. Any of you guys experienced this issue?
I am looking for alternative solution now.. @Sujoy, Do you have more
info on the service you created? Do you mind sharing, the config file,
other settings you had used for your service, please.
On Monday, February 11, 2013 6:35:14 PM UTC-8, Mxims wrote:
Radhu & Sujoy,
Thank you so much for your help on this. I will checkout these options
and will let you know how it goes.
Good guess! Could be related to that.. Let me try giving the server
credentials... and maybe I will try configuring the service with Logon type
'network service' instead of 'local system'. Will keep you posted..
Renjith
On Thursday, March 7, 2013 9:53:54 AM UTC-8, Sujoy Sett wrote:
Hi,
Is it somehow related to windows credentials?
Can u make the service run under any user account upon restart by
providing the log on credentials in the service?
-- Sujoy.
On Thursday, March 7, 2013 11:14:43 PM UTC+5:30, Mxims wrote:
Sujoy,
We have been running the service for more than a week now. So far it has
been very stable. However I see one issue with the service, the Windows
Service doesn't start automatically when the system reboots. If I start it
manually after the system rebbot, it does start without any issues. I have
configured the service's 'Startup Type' to be 'Automatic', and 'Log On As'
to be 'Local System". Did you guys have any similar issues? Any pointeres??
Thanks
On Tuesday, February 26, 2013 10:31:27 AM UTC-8, Mxims wrote:
I was able to install the service successfully. However, I see some
stability issues with the service. The service stops abruptly with Java
fatal error.. Any of you guys experienced this issue?
I am looking for alternative solution now.. @Sujoy, Do you have more
info on the service you created? Do you mind sharing, the config file,
other settings you had used for your service, please.
On Monday, February 11, 2013 6:35:14 PM UTC-8, Mxims wrote:
Radhu & Sujoy,
Thank you so much for your help on this. I will checkout these options
and will let you know how it goes.
Thank you Hendrik. I had to go for a work around when we installed this in production back in Apr. I am happy to see that elasticsearh team made it available for windows.
Since 0.90.5, Elasticsearch provides support for installing Elasticsearch as a service out of the box through
service.bat [1]. The installer mentioned in this thread is outside Elasticsearch and Hendrik takes all the credit for it.
Cheers,
P.S. 0.90.6 will have some nice fixes, especially when dealing with custom memory settings.
Thank you Hendrik. I had to go for a work around when we installed this in production back in Apr. I am happy to see
that elasticsearh team made it available for windows.
Am Donnerstag, 7. Februar 2013 20:37:38 UTC+1 schrieb Mxims:
Hi guys,
Is there a way I can run ElasticSearch nodes as Windows Service on Windows 2008 R2 Servers?
Has anyone tried it? Is there any related documentation?
Thanks
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.