The script elasticsearch, how you call it with absolute path under system dir /usr/lib, has problems in traversing the path to find the parent folder and set the variable ES_HOME.
You should use an init script, like provided by the distributions or the service wrapper, with preconfigured environment, so ES_HOME and ES_CLASSPATH (i.e. the $ES_HOME/lib folder) can be used. Jörg On Wed, Mar 12, 2014 at 8:44 PM, P lva <ruvi...@gmail.com> wrote: > I didnt want elasticsearch to be under a user's directory so I have it in > /usr/lib/elasticsearch. All the files are owned by the non root user that > is running the command > bash /usr/lib/elasticsearch/bin/elasticsearch > > > On Wednesday, March 12, 2014 2:21:41 PM UTC-5, Jörg Prante wrote: > >> And do you start Elasticsearch by the same user you installed >> Elasticsearch under? >> >> Jörg >> >> >> On Wed, Mar 12, 2014 at 8:19 PM, joerg...@gmail.com >> <joerg...@gmail.com>wrote: >> >>> How do you start Elasticsearch, by >>> >>> $ cd $ES_HOME >>> $ ./bin/elasticsearch >>> >>> or >>> >>> $ cd $ES_HOME/bin >>> $ ./elasticsearch >>> >>> or >>> >>> ... >>> >>> ? >>> >>> Jörg >>> >>> >>> >>> On Wed, Mar 12, 2014 at 8:12 PM, P lva <ruv...@gmail.com> wrote: >>> >>>> I have >>>> RHEL 6. >>>> Java 1.7 >>>> default shell is bash. >>>> I tried it on a server, it worked fine right out of the box, but when I >>>> moved to the actual set of servers it failed. >>>> Its got something to do with environment for sure, but I can't figure >>>> out what. >>>> >>>> >>>> On Wednesday, March 12, 2014 5:20:56 AM UTC-5, Alexander Reelsen wrote: >>>> >>>>> Hey, >>>>> >>>>> can you be more verbose, how you are actually starting elasticsearch, >>>>> which version you are using, what operating system you are running on, >>>>> which java version you are running, what is your default shell? Did you >>>>> modify anything from the standard installation? >>>>> Thanks. >>>>> >>>>> >>>>> --Alex >>>>> >>>>> >>>>> On Tue, Mar 11, 2014 at 11:38 PM, P lva <ruv...@gmail.com> wrote: >>>>> >>>>>> I get this error at elasticsearch startup >>>>>> >>>>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>>>> org.apache.lucene.util.Version >>>>>> at org.elasticsearch.Version.<clinit>(Version.java:42) >>>>>> at java.lang.Class.initializeClass(libgcj.so.10) >>>>>> at org.elasticsearch.bootstrap.Bootstrap.buildErrorMessage(Boot >>>>>> strap.java:252) >>>>>> at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178) >>>>>> at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch >>>>>> .java:32) >>>>>> >>>>>> The jar containing this class is present in the lib directory and >>>>>> echo $ES_CLASSPATH shows this jar. >>>>>> >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "elasticsearch" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to elasticsearc...@googlegroups.com. >>>>>> >>>>>> To view this discussion on the web visit https://groups.google.com/d/ >>>>>> msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40goo >>>>>> glegroups.com<https://groups.google.com/d/msgid/elasticsearch/fd314c1e-a78a-4d93-a1e4-5c442fab1bee%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "elasticsearch" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to elasticsearc...@googlegroups.com. >>>> To view this discussion on the web visit https://groups.google.com/d/ >>>> msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef% >>>> 40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/ccb52426-5681-4505-b08f-8233ba0d78ef%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >> -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to elasticsearch+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/412cb050-aecf-4309-b230-db2d538ddd12%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH35FjFWvzA0MdNrg0EF_hHcPTsrBwYXT-skBEUy5D77Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.