Deploying ES as a Windows Service

Hello

I downloaded the ES service host and put it in the location it should
be. After running the .bat file and finding that it didn't work, I
modified a few paths to their absolute location (namely, the
configuration file path) and everything works. I even manged to
install the service on my windows machine via the -i parameter.
The problem is that the service's path to executable points to the
configuration file (which, of course, can't be run). Any idea what I'm
doing wrong or how to alter the configuration?

Thanks!

Did not understand what the problem is.
On Wednesday, April 27, 2011 at 11:51 AM, Nir Rubinstein wrote:

Hello

I downloaded the ES service host and put it in the location it should
be. After running the .bat file and finding that it didn't work, I
modified a few paths to their absolute location (namely, the
configuration file path) and everything works. I even manged to
install the service on my windows machine via the -i parameter.
The problem is that the service's path to executable points to the
configuration file (which, of course, can't be run). Any idea what I'm
doing wrong or how to alter the configuration?

Thanks!

What command line are you using to install the service? Are you using
GitHub - elastic/elasticsearch-servicewrapper: A service wrapper on top of elasticsearch?

BTW, you might want to look at
GitHub - rgl/elasticsearch-setup: elasticsearch oss installer for windows. as an alternative windows
service and installer.

Best regards,
Rui Lopes

On Wed, Apr 27, 2011 at 09:51, Nir Rubinstein nirrub@gmail.com wrote:

Hello

I downloaded the ES service host and put it in the location it should
be. After running the .bat file and finding that it didn't work, I
modified a few paths to their absolute location (namely, the
configuration file path) and everything works. I even manged to
install the service on my windows machine via the -i parameter.
The problem is that the service's path to executable points to the
configuration file (which, of course, can't be run). Any idea what I'm
doing wrong or how to alter the configuration?

Thanks!

Simple = deployed as a WS, but in windows, the "Path to Executable"
points to the "elasticsearch.conf" under"bin/service" - of course,
since this is not an executable, it does not do anything.

Advice?

On Apr 27, 8:14 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Did not understand what the problem is.

On Wednesday, April 27, 2011 at 11:51 AM, Nir Rubinstein wrote:

Hello

I downloaded the ES service host and put it in the location it should
be. After running the .bat file and finding that it didn't work, I
modified a few paths to their absolute location (namely, the
configuration file path) and everything works. I even manged to
install the service on my windows machine via the -i parameter.
The problem is that the service's path to executable points to the
configuration file (which, of course, can't be run). Any idea what I'm
doing wrong or how to alter the configuration?

Thanks!

You mean the path to executable for the windows service? Sorry, not a windows user, if thats the case, which paths did you change to make it work? Maybe something in addition needs to be set...
On Thursday, April 28, 2011 at 9:15 AM, Nir Rubinstein wrote:

Simple = deployed as a WS, but in windows, the "Path to Executable"
points to the "elasticsearch.conf" under"bin/service" - of course,
since this is not an executable, it does not do anything.

Advice?

On Apr 27, 8:14 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Did not understand what the problem is.

On Wednesday, April 27, 2011 at 11:51 AM, Nir Rubinstein wrote:

Hello

I downloaded the ES service host and put it in the location it should
be. After running the .bat file and finding that it didn't work, I
modified a few paths to their absolute location (namely, the
configuration file path) and everything works. I even manged to
install the service on my windows machine via the -i parameter.
The problem is that the service's path to executable points to the
configuration file (which, of course, can't be run). Any idea what I'm
doing wrong or how to alter the configuration?

Thanks!

Yup, that's exactly what I mean.

I changed the path to the configuration file and the path of the ES
home (int the .bat file) - both of them were set to their absolute
values.

Thanks!

On Apr 28, 1:35 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

You mean the path to executable for the windows service? Sorry, not a windows user, if thats the case, which paths did you change to make it work? Maybe something in addition needs to be set...

On Thursday, April 28, 2011 at 9:15 AM, Nir Rubinstein wrote:

Simple = deployed as a WS, but in windows, the "Path to Executable"
points to the "elasticsearch.conf" under"bin/service" - of course,
since this is not an executable, it does not do anything.

Advice?

On Apr 27, 8:14 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Did not understand what the problem is.

On Wednesday, April 27, 2011 at 11:51 AM, Nir Rubinstein wrote:

Hello

I downloaded the ES service host and put it in the location it should
be. After running the .bat file and finding that it didn't work, I
modified a few paths to their absolute location (namely, the
configuration file path) and everything works. I even manged to
install the service on my windows machine via the -i parameter.
The problem is that the service's path to executable points to the
configuration file (which, of course, can't be run). Any idea what I'm
doing wrong or how to alter the configuration?

Thanks!

And it still does not start? Maybe there is a log somewhere (either the ES log, and if nothing there, maybe in the windows logging for services, I think there is one...)
On Thursday, April 28, 2011 at 3:20 PM, Nir Rubinstein wrote:

Yup, that's exactly what I mean.

I changed the path to the configuration file and the path of the ES
home (int the .bat file) - both of them were set to their absolute
values.

Thanks!

On Apr 28, 1:35 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

You mean the path to executable for the windows service? Sorry, not a windows user, if thats the case, which paths did you change to make it work? Maybe something in addition needs to be set...

On Thursday, April 28, 2011 at 9:15 AM, Nir Rubinstein wrote:

Simple = deployed as a WS, but in windows, the "Path to Executable"
points to the "elasticsearch.conf" under"bin/service" - of course,
since this is not an executable, it does not do anything.

Advice?

On Apr 27, 8:14 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Did not understand what the problem is.

On Wednesday, April 27, 2011 at 11:51 AM, Nir Rubinstein wrote:

Hello

I downloaded the ES service host and put it in the location it should
be. After running the .bat file and finding that it didn't work, I
modified a few paths to their absolute location (namely, the
configuration file path) and everything works. I even manged to
install the service on my windows machine via the -i parameter.
The problem is that the service's path to executable points to the
configuration file (which, of course, can't be run). Any idea what I'm
doing wrong or how to alter the configuration?

Thanks!

Thanks Rui!!!

The first link worked as a charm!

got it installed and running on 2 machines now in 5 minutes - great
work!

Thanks again!!!

On Apr 27, 11:02 pm, Rui Lopes rui.godinho.lo...@gmail.com wrote:

What command line are you using to install the service? Are you usinghttps://github.com/elasticsearch/elasticsearch-servicewrapper?

BTW, you might want to look athttps://github.com/rgl/elasticsearch-setupas an alternative windows
service and installer.

Best regards,
Rui Lopes

On Wed, Apr 27, 2011 at 09:51, Nir Rubinstein nir...@gmail.com wrote:

Hello

I downloaded the ES service host and put it in the location it should
be. After running the .bat file and finding that it didn't work, I
modified a few paths to their absolute location (namely, the
configuration file path) and everything works. I even manged to
install the service on my windows machine via the -i parameter.
The problem is that the service's path to executable points to the
configuration file (which, of course, can't be run). Any idea what I'm
doing wrong or how to alter the configuration?

Thanks!

Thanks Rui!!

The first link did the trick - got it working on 2 servers in under 10
minutes - works like a chram!

Thanks again

Nir

On Apr 27, 11:02 pm, Rui Lopes rui.godinho.lo...@gmail.com wrote:

What command line are you using to install the service? Are you usinghttps://github.com/elasticsearch/elasticsearch-servicewrapper?

BTW, you might want to look athttps://github.com/rgl/elasticsearch-setupas an alternative windows
service and installer.

Best regards,
Rui Lopes

On Wed, Apr 27, 2011 at 09:51, Nir Rubinstein nir...@gmail.com wrote:

Hello

I downloaded the ES service host and put it in the location it should
be. After running the .bat file and finding that it didn't work, I
modified a few paths to their absolute location (namely, the
configuration file path) and everything works. I even manged to
install the service on my windows machine via the -i parameter.
The problem is that the service's path to executable points to the
configuration file (which, of course, can't be run). Any idea what I'm
doing wrong or how to alter the configuration?

Thanks!