Any info on elasticsearch as a windows service?

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

Thank you

Walter

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

There is also the service wrapper effort going on: GitHub - elastic/elasticsearch-servicewrapper: A service wrapper on top of elasticsearch, 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?

How to create a windows service from java app - Stack Overflow

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

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

There is also the service wrapper effort going
on: GitHub - elastic/elasticsearch-servicewrapper: A service wrapper on top of elasticsearch, 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 GitHub - rgl/elasticsearch-setup: elasticsearch oss installer for windows.

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?

How to create a windows service from java app - Stack Overflow

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

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

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

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 GitHub - rgl/elasticsearch-setup: elasticsearch oss installer for windows. 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).

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

I've done a write-up of it here:

  • 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

  • deleted -