elastic / elasticsearch-servicewrapper

A service wrapper on top of elasticsearch
http://www.elastic.co
487 stars 182 forks source link

Unable to start elasticsearch 1.0.0.RC2 #34

Open evanwong opened 10 years ago

evanwong commented 10 years ago

I can start elasticsearch without using the service wrapper but when I use this wrapper, it is throwing the below errors:

STATUS | wrapper | 2014/02/03 12:18:23 | --> Wrapper Started as Console STATUS | wrapper | 2014/02/03 12:18:23 | Java Service Wrapper Community Edition 64-bit 3.5.14 STATUS | wrapper | 2014/02/03 12:18:23 | Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved. STATUS | wrapper | 2014/02/03 12:18:23 | http://wrapper.tanukisoftware.com STATUS | wrapper | 2014/02/03 12:18:23 | STATUS | wrapper | 2014/02/03 12:18:23 | Launching a JVM... INFO | jvm 1 | 2014/02/03 12:18:23 | WrapperManager: Initializing... INFO | jvm 1 | 2014/02/03 12:18:23 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticSearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticSearchF INFO | jvm 1 | 2014/02/03 12:18:23 | INFO | jvm 1 | 2014/02/03 12:18:23 | WrapperSimpleApp Usage: INFO | jvm 1 | 2014/02/03 12:18:23 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments] INFO | jvm 1 | 2014/02/03 12:18:23 | INFO | jvm 1 | 2014/02/03 12:18:23 | Where: INFO | jvm 1 | 2014/02/03 12:18:23 | app_class: The fully qualified class name of the application to run. INFO | jvm 1 | 2014/02/03 12:18:23 | app_arguments: The arguments that would normally be passed to the INFO | jvm 1 | 2014/02/03 12:18:23 | application. ERROR | wrapper | 2014/02/03 12:18:26 | JVM exited while loading the application. STATUS | wrapper | 2014/02/03 12:18:28 | INT trapped. Shutting down. STATUS | wrapper | 2014/02/03 12:18:28 | <-- Wrapper Stopped

kimchy commented 10 years ago

we renamed the class to ElasticsearchF (note the lowercase s). When 1.0 is out, we can update the script. Though, I recommend just using our deb/rpm packages now.

tonylwj commented 8 years ago

@kimchy ,

as a fresher on ES, I meet the same problem ( lowercase 'ElasticsearchF ', yet ):

download the package, unzip to %ES_Home%/bin edit elasticsearch.conf: set.default.ES_HOME=/home/lwj/elasticsearch-2.1.1

cd to %ES_Home%/bin/service/, and run: ./elasticsearch start

[yarn@hpblade04 service]$ ./elasticsearch start Starting Elasticsearch... Waiting for Elasticsearch............................... WARNING: Elasticsearch may have failed to start

Then I found these message in /home/lwj/elasticsearch-2.1.1/logs/service.log : STATUS | wrapper | 2016/01/25 17:34:56 | Launching a JVM... INFO | jvm 1 | 2016/01/25 17:34:56 | WrapperManager: Initializing... INFO | jvm 1 | 2016/01/25 17:34:56 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticsearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticsearchF

anything needed to run service ?