Any info on elasticsearch as a windows service?


(otrWalter) #1

Anyone have any idea how to make elasticsearch run as a windows service?

Thank you

Walter


(Karussell) #2

Did you follow the generic approach? Or what difficulties did you
encounter?

On Jun 6, 11:45 pm, otrWalter otrwal...@gmail.com wrote:

Anyone have any idea how to make elasticsearch run as a windows service?

Thank you

Walter


(Shay Banon) #3

There is also the service wrapper effort going on: https://github.com/elasticsearch/elasticsearch-servicewrapper, which should allow to install elasticsearch "as a windows service".. Also, there is a windows installation project in github, but not properly online to find it...

On Tuesday, June 7, 2011 at 1:26 AM, Karussell wrote:

Did you follow the generic approach? Or what difficulties did you
encounter?

http://stackoverflow.com/questions/68113/how-to-create-a-windows-service-from-java-app

On Jun 6, 11:45 pm, otrWalter <otrwal...@gmail.com (http://gmail.com)> wrote:

Anyone have any idea how to make elasticsearch run as a windows service?

Thank you

Walter


(Rui Lopes) #4

On Mon, Jun 6, 2011 at 23:39, Shay Banon shay.banon@elasticsearch.com wrote:

There is also the service wrapper effort going
on: https://github.com/elasticsearch/elasticsearch-servicewrapper, which
should allow to install elasticsearch "as a windows service".. Also, there
is a windows installation project in github, but not properly online to find
it...

Its at https://github.com/rgl/elasticsearch-setup

Best regards,
Rui Lopes

On Tuesday, June 7, 2011 at 1:26 AM, Karussell wrote:

Did you follow the generic approach? Or what difficulties did you
encounter?

http://stackoverflow.com/questions/68113/how-to-create-a-windows-service-from-java-app

On Jun 6, 11:45 pm, otrWalter otrwal...@gmail.com wrote:

Anyone have any idea how to make elasticsearch run as a windows service?

Thank you

Walter


(Walter Torres) #5

Did not try any approach.

I don't know Java, don't know where to begin.

I followed your link, which led me to many others. Many way over my head.

After about 2 hours of trying this "app" and that "app, I settled on "*
WinRun4J*"

I got the sample piece to run. But I am stumped on getting *elasticsearch *to
run.

The CONFIG file asks for a class. The sample has this line:

service.class=org.boris.winrun4j.test.ServiceTest

Not knowing Java, as I said, I don't know what to put here.

The config has this, as its example...

service.class=org.boris.winrun4j.test.ServiceTest
service.id=ServiceTest
service.name=WinRun4J Test Service
service.description=An example service using WinRun4J.

I did this (not) much

service.class=????
service.id=????
service.name=ElasticSearch
service.description=ElasticSearch as a Windows Service.

can you help me finish this config file settings?

Thank you

Walter


(David Pilato) #6

I suggest

service.class=org.elasticsearch.bootstrap.ElasticSearch
service.id=elasticsearch

Have a look at https://github.com/elasticsearch/elasticsearch/blob/master/bin/elasticsearch.bat

to find more params (such as classpath and memory settings)

Hope this could help
David :wink:

Le 7 juin 2011 à 02:11, Walter Torres walter@torres.ws a écrit :

Did not try any approach.

I don't know Java, don't know where to begin.

I followed your link, which led me to many others. Many way over my head.

After about 2 hours of trying this "app" and that "app, I settled on "WinRun4J"

I got the sample piece to run. But I am stumped on getting elasticsearch to run.

The CONFIG file asks for a class. The sample has this line:

service.class=org.boris.winrun4j.test.ServiceTest

Not knowing Java, as I said, I don't know what to put here.

The config has this, as its example...

service.class=org.boris.winrun4j.test.ServiceTest
service.id=ServiceTest
service.name=WinRun4J Test Service
service.description=An example service using WinRun4J.

I did this (not) much

service.class=????
service.id=????
service.name=ElasticSearch
service.description=ElasticSearch as a Windows Service.

can you help me finish this config file settings?

Thank you

Walter


(Rui Lopes) #7

On Tue, Jun 7, 2011 at 01:11, Walter Torres walter@torres.ws wrote:

Did not try any approach.
I don't know Java, don't know where to begin.
I followed your link, which led me to many others. Many way over my head.

It should have been strait-forward :frowning:

At https://github.com/rgl/elasticsearch-setup click the Downloads
button and download
https://github.com/downloads/rgl/elasticsearch-setup/elasticsearch-0.16.2-setup-64-bit.exe
Then run it to install elasticsearch, manually start the elasticsearch
service (like a regular service), and browse to
http://localhost:9200/_cluster/state

If you don't have java installed, the setup will tell you to download
it from http://www.java.com/getjava/ and from there just click the
Download button.

Thats it.

Where exactly did you get lost?

Best regards,
Rui Lopes

PS: You might also want to read
http://blog.ruilopes.com/post/3345958088/from-zero-to-elasticsearch-in-a-jiffy
(I did that before creating the installer/setup though, so you can
ignore the first part that talks about starting elasticsearch).


(CaptainCodeman-2) #8

I had good success using the Apache Commons Daemon or 'procrun'.

I've done a write-up of it here:
http://www.captaincodeman.com/2011/05/20/elasticsearch-windows-service-2008-x64/

  • Simon

On Jun 6, 6:11 pm, Walter Torres wal...@torres.ws wrote:

Did not try any approach.

I don't know Java, don't know where to begin.

I followed your link, which led me to many others. Many way over my head.

After about 2 hours of trying this "app" and that "app, I settled on "*
WinRun4J*"

I got the sample piece to run. But I am stumped on getting *elasticsearch *to
run.

The CONFIG file asks for a class. The sample has this line:

service.class=org.boris.winrun4j.test.ServiceTest

Not knowing Java, as I said, I don't know what to put here.

The config has this, as its example...

service.class=org.boris.winrun4j.test.ServiceTest
service.id=ServiceTest
service.name=WinRun4J Test Service
service.description=An example service using WinRun4J.

I did this (not) much

service.class=????
service.id=????
service.name=ElasticSearch
service.description=ElasticSearch as a Windows Service.

can you help me finish this config file settings?

Thank you

Walter


(fashionalwallet) #9
  • deleted -

(system) #10