Elastic Search on Windows XP


(Satish Talim) #1

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it was
not obvious that Elastic Search works on Windows. After installing and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(Satish Talim) #2

I added D:\elasticsearch-0.17.6\lib\elasticsearch-0.17.6.jar; to my
existing classpath, but it gives the same error.

On Aug 28, 10:13 am, IndianGuru satish.ta...@gmail.com wrote:

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it was
not obvious that Elastic Search works on Windows. After installing and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(Shay Banon) #3

What exactly have you downloaded? The source (from github), or the actual
distribution? You should download the actual distribution:
http://www.elasticsearch.org/download/.

On Sun, Aug 28, 2011 at 12:40 PM, IndianGuru satish.talim@gmail.com wrote:

I added D:\elasticsearch-0.17.6\lib\elasticsearch-0.17.6.jar; to my
existing classpath, but it gives the same error.

On Aug 28, 10:13 am, IndianGuru satish.ta...@gmail.com wrote:

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it was
not obvious that Elastic Search works on Windows. After installing and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(Satish Talim) #4

Yes, I have downloaded the latest stable release of elasticsearch (0.17.6)
from http://www.elasticsearch.org/download/

The URL leads me to download the zip file from -
https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.zip

Is this correct?

Satish

On Mon, Aug 29, 2011 at 11:22 PM, Shay Banon kimchy@gmail.com wrote:

What exactly have you downloaded? The source (from github), or the actual
distribution? You should download the actual distribution:
http://www.elasticsearch.org/download/.

On Sun, Aug 28, 2011 at 12:40 PM, IndianGuru satish.talim@gmail.comwrote:

I added D:\elasticsearch-0.17.6\lib\elasticsearch-0.17.6.jar; to my
existing classpath, but it gives the same error.

On Aug 28, 10:13 am, IndianGuru satish.ta...@gmail.com wrote:

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it was
not obvious that Elastic Search works on Windows. After installing and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(Shay Banon) #5

Then it should work. Setting JAVA_HOME and running hte elasticsearch.bat
script. Are you sure you are running the correct install? It seems like it
logged using slf4j, and slf4j is not part of the actual download.

On Tue, Aug 30, 2011 at 4:23 AM, Satish Talim satish.talim@gmail.comwrote:

Yes, I have downloaded the latest stable release of elasticsearch (0.17.6)
from http://www.elasticsearch.org/download/

The URL leads me to download the zip file from -

https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.zip

Is this correct?

Satish

On Mon, Aug 29, 2011 at 11:22 PM, Shay Banon kimchy@gmail.com wrote:

What exactly have you downloaded? The source (from github), or the actual
distribution? You should download the actual distribution:
http://www.elasticsearch.org/download/.

On Sun, Aug 28, 2011 at 12:40 PM, IndianGuru satish.talim@gmail.comwrote:

I added D:\elasticsearch-0.17.6\lib\elasticsearch-0.17.6.jar; to my
existing classpath, but it gives the same error.

On Aug 28, 10:13 am, IndianGuru satish.ta...@gmail.com wrote:

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it was
not obvious that Elastic Search works on Windows. After installing and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(Satish Talim) #6

I have the JAVA_HOME set and I am running the correct install.

Still no luck.

Satish

On Tue, Aug 30, 2011 at 4:34 PM, Shay Banon kimchy@gmail.com wrote:

Then it should work. Setting JAVA_HOME and running hte elasticsearch.bat
script. Are you sure you are running the correct install? It seems like it
logged using slf4j, and slf4j is not part of the actual download.

On Tue, Aug 30, 2011 at 4:23 AM, Satish Talim satish.talim@gmail.comwrote:

Yes, I have downloaded the latest stable release of elasticsearch (0.17.6)
from http://www.elasticsearch.org/download/

The URL leads me to download the zip file from -

https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.zip

Is this correct?

Satish

On Mon, Aug 29, 2011 at 11:22 PM, Shay Banon kimchy@gmail.com wrote:

What exactly have you downloaded? The source (from github), or the actual
distribution? You should download the actual distribution:
http://www.elasticsearch.org/download/.

On Sun, Aug 28, 2011 at 12:40 PM, IndianGuru satish.talim@gmail.comwrote:

I added D:\elasticsearch-0.17.6\lib\elasticsearch-0.17.6.jar; to my
existing classpath, but it gives the same error.

On Aug 28, 10:13 am, IndianGuru satish.ta...@gmail.com wrote:

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it was
not obvious that Elastic Search works on Windows. After installing and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(Shay Banon) #7

Can you edit the elasticsearch.bat file and echo the execution line (starts
with "%JAVA_HOME%\bin\java")? See where things are pointing, and gist it as
well.

On Tue, Aug 30, 2011 at 2:20 PM, Satish Talim satish.talim@gmail.comwrote:

I have the JAVA_HOME set and I am running the correct install.

Still no luck.

Satish

On Tue, Aug 30, 2011 at 4:34 PM, Shay Banon kimchy@gmail.com wrote:

Then it should work. Setting JAVA_HOME and running hte elasticsearch.bat
script. Are you sure you are running the correct install? It seems like it
logged using slf4j, and slf4j is not part of the actual download.

On Tue, Aug 30, 2011 at 4:23 AM, Satish Talim satish.talim@gmail.comwrote:

Yes, I have downloaded the latest stable release of elasticsearch
(0.17.6) from http://www.elasticsearch.org/download/

The URL leads me to download the zip file from -

https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.zip

Is this correct?

Satish

On Mon, Aug 29, 2011 at 11:22 PM, Shay Banon kimchy@gmail.com wrote:

What exactly have you downloaded? The source (from github), or the
actual distribution? You should download the actual distribution:
http://www.elasticsearch.org/download/.

On Sun, Aug 28, 2011 at 12:40 PM, IndianGuru satish.talim@gmail.comwrote:

I added D:\elasticsearch-0.17.6\lib\elasticsearch-0.17.6.jar; to my
existing classpath, but it gives the same error.

On Aug 28, 10:13 am, IndianGuru satish.ta...@gmail.com wrote:

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it was
not obvious that Elastic Search works on Windows. After installing
and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(Satish Talim) #8

Here's the Gist -

Satish

On Tue, Aug 30, 2011 at 5:41 PM, Shay Banon kimchy@gmail.com wrote:

Can you edit the elasticsearch.bat file and echo the execution line (starts
with "%JAVA_HOME%\bin\java")? See where things are pointing, and gist it as
well.

On Tue, Aug 30, 2011 at 2:20 PM, Satish Talim satish.talim@gmail.comwrote:

I have the JAVA_HOME set and I am running the correct install.

Still no luck.

Satish

On Tue, Aug 30, 2011 at 4:34 PM, Shay Banon kimchy@gmail.com wrote:

Then it should work. Setting JAVA_HOME and running hte elasticsearch.bat
script. Are you sure you are running the correct install? It seems like it
logged using slf4j, and slf4j is not part of the actual download.

On Tue, Aug 30, 2011 at 4:23 AM, Satish Talim satish.talim@gmail.comwrote:

Yes, I have downloaded the latest stable release of elasticsearch
(0.17.6) from http://www.elasticsearch.org/download/

The URL leads me to download the zip file from -

https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.zip

Is this correct?

Satish

On Mon, Aug 29, 2011 at 11:22 PM, Shay Banon kimchy@gmail.com wrote:

What exactly have you downloaded? The source (from github), or the
actual distribution? You should download the actual distribution:
http://www.elasticsearch.org/download/.

On Sun, Aug 28, 2011 at 12:40 PM, IndianGuru satish.talim@gmail.comwrote:

I added D:\elasticsearch-0.17.6\lib\elasticsearch-0.17.6.jar; to my
existing classpath, but it gives the same error.

On Aug 28, 10:13 am, IndianGuru satish.ta...@gmail.com wrote:

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it was
not obvious that Elastic Search works on Windows. After installing
and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and
had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(Shay Banon) #9

I think that you have CLASSPATH env var set, which is appended to the
classpath used to start elasticsearch. If you clear it, or remove it from
the following like in the batch file:

set ES_CLASSPATH=%CLASSPATH%;%ES_HOME%/lib/;%ES_HOME%/lib/sigar/

Then things should work. I will open an issue to not include the CLASSPATH
in the script, we don't really need it...

On Tue, Aug 30, 2011 at 3:17 PM, Satish Talim satish.talim@gmail.comwrote:

Here's the Gist -
https://gist.github.com/1180764

Satish

On Tue, Aug 30, 2011 at 5:41 PM, Shay Banon kimchy@gmail.com wrote:

Can you edit the elasticsearch.bat file and echo the execution line
(starts with "%JAVA_HOME%\bin\java")? See where things are pointing, and
gist it as well.

On Tue, Aug 30, 2011 at 2:20 PM, Satish Talim satish.talim@gmail.comwrote:

I have the JAVA_HOME set and I am running the correct install.

Still no luck.

Satish

On Tue, Aug 30, 2011 at 4:34 PM, Shay Banon kimchy@gmail.com wrote:

Then it should work. Setting JAVA_HOME and running hte elasticsearch.bat
script. Are you sure you are running the correct install? It seems like it
logged using slf4j, and slf4j is not part of the actual download.

On Tue, Aug 30, 2011 at 4:23 AM, Satish Talim satish.talim@gmail.comwrote:

Yes, I have downloaded the latest stable release of elasticsearch
(0.17.6) from http://www.elasticsearch.org/download/

The URL leads me to download the zip file from -

https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.zip

Is this correct?

Satish

On Mon, Aug 29, 2011 at 11:22 PM, Shay Banon kimchy@gmail.com wrote:

What exactly have you downloaded? The source (from github), or the
actual distribution? You should download the actual distribution:
http://www.elasticsearch.org/download/.

On Sun, Aug 28, 2011 at 12:40 PM, IndianGuru satish.talim@gmail.comwrote:

I added D:\elasticsearch-0.17.6\lib\elasticsearch-0.17.6.jar; to my
existing classpath, but it gives the same error.

On Aug 28, 10:13 am, IndianGuru satish.ta...@gmail.com wrote:

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it
was
not obvious that Elastic Search works on Windows. After installing
and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and
had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(Satish Talim) #10

Thanks Shay. I removed %CLASSPATH%; from the line -
set ES_CLASSPATH=%ES_HOME%/lib/;%ES_HOME%/lib/sigar/

and it worked.

Satish

On Tue, Aug 30, 2011 at 6:08 PM, Shay Banon kimchy@gmail.com wrote:

I think that you have CLASSPATH env var set, which is appended to the
classpath used to start elasticsearch. If you clear it, or remove it from
the following like in the batch file:

set ES_CLASSPATH=%CLASSPATH%;%ES_HOME%/lib/;%ES_HOME%/lib/sigar/

Then things should work. I will open an issue to not include the CLASSPATH
in the script, we don't really need it...

On Tue, Aug 30, 2011 at 3:17 PM, Satish Talim satish.talim@gmail.comwrote:

Here's the Gist -
https://gist.github.com/1180764

Satish

On Tue, Aug 30, 2011 at 5:41 PM, Shay Banon kimchy@gmail.com wrote:

Can you edit the elasticsearch.bat file and echo the execution line
(starts with "%JAVA_HOME%\bin\java")? See where things are pointing, and
gist it as well.

On Tue, Aug 30, 2011 at 2:20 PM, Satish Talim satish.talim@gmail.comwrote:

I have the JAVA_HOME set and I am running the correct install.

Still no luck.

Satish

On Tue, Aug 30, 2011 at 4:34 PM, Shay Banon kimchy@gmail.com wrote:

Then it should work. Setting JAVA_HOME and running hte
elasticsearch.bat script. Are you sure you are running the correct install?
It seems like it logged using slf4j, and slf4j is not part of the actual
download.

On Tue, Aug 30, 2011 at 4:23 AM, Satish Talim satish.talim@gmail.comwrote:

Yes, I have downloaded the latest stable release of elasticsearch
(0.17.6) from http://www.elasticsearch.org/download/

The URL leads me to download the zip file from -

https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.zip

Is this correct?

Satish

On Mon, Aug 29, 2011 at 11:22 PM, Shay Banon kimchy@gmail.comwrote:

What exactly have you downloaded? The source (from github), or the
actual distribution? You should download the actual distribution:
http://www.elasticsearch.org/download/.

On Sun, Aug 28, 2011 at 12:40 PM, IndianGuru <satish.talim@gmail.com

wrote:

I added D:\elasticsearch-0.17.6\lib\elasticsearch-0.17.6.jar; to my
existing classpath, but it gives the same error.

On Aug 28, 10:13 am, IndianGuru satish.ta...@gmail.com wrote:

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it
was
not obvious that Elastic Search works on Windows. After installing
and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and
had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(Shay Banon) #11

Cool, I opened this:
https://github.com/elasticsearch/elasticsearch/issues/1287.

On Tue, Aug 30, 2011 at 3:45 PM, Satish Talim satish.talim@gmail.comwrote:

Thanks Shay. I removed %CLASSPATH%; from the line -
set ES_CLASSPATH=%ES_HOME%/lib/;%ES_HOME%/lib/sigar/

and it worked.

Satish

On Tue, Aug 30, 2011 at 6:08 PM, Shay Banon kimchy@gmail.com wrote:

I think that you have CLASSPATH env var set, which is appended to the
classpath used to start elasticsearch. If you clear it, or remove it from
the following like in the batch file:

set ES_CLASSPATH=%CLASSPATH%;%ES_HOME%/lib/;%ES_HOME%/lib/sigar/

Then things should work. I will open an issue to not include the CLASSPATH
in the script, we don't really need it...

On Tue, Aug 30, 2011 at 3:17 PM, Satish Talim satish.talim@gmail.comwrote:

Here's the Gist -
https://gist.github.com/1180764

Satish

On Tue, Aug 30, 2011 at 5:41 PM, Shay Banon kimchy@gmail.com wrote:

Can you edit the elasticsearch.bat file and echo the execution line
(starts with "%JAVA_HOME%\bin\java")? See where things are pointing, and
gist it as well.

On Tue, Aug 30, 2011 at 2:20 PM, Satish Talim satish.talim@gmail.comwrote:

I have the JAVA_HOME set and I am running the correct install.

Still no luck.

Satish

On Tue, Aug 30, 2011 at 4:34 PM, Shay Banon kimchy@gmail.com wrote:

Then it should work. Setting JAVA_HOME and running hte
elasticsearch.bat script. Are you sure you are running the correct install?
It seems like it logged using slf4j, and slf4j is not part of the actual
download.

On Tue, Aug 30, 2011 at 4:23 AM, Satish Talim <satish.talim@gmail.com

wrote:

Yes, I have downloaded the latest stable release of elasticsearch
(0.17.6) from http://www.elasticsearch.org/download/

The URL leads me to download the zip file from -

https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.zip

Is this correct?

Satish

On Mon, Aug 29, 2011 at 11:22 PM, Shay Banon kimchy@gmail.comwrote:

What exactly have you downloaded? The source (from github), or the
actual distribution? You should download the actual distribution:
http://www.elasticsearch.org/download/.

On Sun, Aug 28, 2011 at 12:40 PM, IndianGuru <
satish.talim@gmail.com> wrote:

I added D:\elasticsearch-0.17.6\lib\elasticsearch-0.17.6.jar; to my
existing classpath, but it gives the same error.

On Aug 28, 10:13 am, IndianGuru satish.ta...@gmail.com wrote:

Wanted to give Elastic Search a spin. I have downloaded
elasticsearch-0.17.6 as a zip file. From the site's main page it
was
not obvious that Elastic Search works on Windows. After
installing and
reading the file README.textile, I came to know that it works on
Windows.

I had not set the environment system variable path on Windows and
had
to run elasticsearch.bat from the bin folder of the installation.
However, I get an error:

D:\elasticsearch-0.17.6\bin>elasticsearch.bat
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalWarn
WARNING: jvm uses the client vm, make sure to run java with the
server vm for
best performance by adding -server to the command line
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] {elasticsearch/0.17.6}[5832]:
initializing ...
Aug 28, 2011 10:27:35 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalInfo
INFO: [Gabriel the Air-Walker] loaded [], sites []
Aug 28, 2011 10:27:37 AM
org.elasticsearch.common.logging.slf4j.Slf4jESLogger in
ternalError
SEVERE: {elasticsearch/0.17.6}: Initialization Failed ...

  1. NoSuchFieldError[LUCENE_31]2) NoClassDefFoundError[Could not
    initialize class
    org.elasticsearch.common.lucene.Lucene]
    D:\elasticsearch-0.17.6\bin>
    ==================================

I am using Java 1.6.0_26 on a Windows XP computer.

What am I doing wrong? Thanks for your help.


(system) #12