I try to install Elasticsearch 1.1.0 on OSX Mavericks, but I got the following errors when I try to run:
:> ./elasticsearch Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.Version at org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Bootstrap.java:252) at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:236) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
Also, when I execute the same command with -v arg, I got this error:
:> ./elasticsearch -v Exception in thread "main" java.lang.NoSuchFieldError: LUCENE_36 at org.elasticsearch.Version.<clinit>(Version.java:42)
Here is my environment:
Java version
>: java -version java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
Installation path (downloaded .tar.gz archive from elasticsearch download page and extracted here):
/usr/local/elasticsearch-1.1.0
ENV vars:
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home CLASSPATH=/usr/local/elasticsearch-1.1.0/lib/*.jar:/usr/local/elasticsearch-1.1.0/lib/sigar/*.jar
UPDATE
I finally make it work, unfortunately, not sure, because I tried a lot of changes :). But here is the list of changes I made can help:
~ / Library / caches
/ Library / caches
I deleted CLASSPATH env var.
ES_PATH and ES_HOME env vars are not installed either, but I think this is not so important.
Note: it now works if I install using brew.
Thank.
osx-mavericks elasticsearch
Catalin M. Apr 03 '14 at 22:33 2014-04-03 22:33
source share