我刚在CentOS 6.5服务器上安装了elasticsearch。但是,当我运行以下命令时,看到失败消息。我也像这个链接Unable to run ElasticSearch as a service on Ubuntu
一样编辑了HEAP_SIZE[root@CentOS /]# rcelasticsearch start
Starting Elasticsearch...
Waiting for Elasticsearch...............................
WARNING: Elasticsearch may have failed to start.
[root@CentOS /]#
[root@CentOS /]# /etc/init.d/elasticsearch start
Starting Elasticsearch...
Waiting for Elasticsearch...............................
WARNING: Elasticsearch may have failed to start.
[root@CentOS /]#
这是service.log:
STATUS | wrapper | 2014/05/02 10:20:47 | Java Service Wrapper Community Edition 64-bit 3.5.14
STATUS | wrapper | 2014/05/02 10:20:47 | Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2014/05/02 10:20:47 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2014/05/02 10:20:47 |
STATUS | wrapper | 2014/05/02 10:20:48 | Launching a JVM...
INFO | jvm 1 | 2014/05/02 10:20:48 | WrapperManager: Initializing...
INFO | jvm 1 | 2014/05/02 10:20:48 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticsearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticsearchF
INFO | jvm 1 | 2014/05/02 10:20:48 |
INFO | jvm 1 | 2014/05/02 10:20:48 | WrapperSimpleApp Usage:
INFO | jvm 1 | 2014/05/02 10:20:48 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO | jvm 1 | 2014/05/02 10:20:48 |
INFO | jvm 1 | 2014/05/02 10:20:48 | Where:
INFO | jvm 1 | 2014/05/02 10:20:48 | app_class: The fully qualified class name of the application to run.
INFO | jvm 1 | 2014/05/02 10:20:48 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 1 | 2014/05/02 10:20:48 | application.
ERROR | wrapper | 2014/05/02 10:20:50 | JVM exited while loading the application.
STATUS | wrapper | 2014/05/02 10:20:54 | Launching a JVM...
INFO | jvm 2 | 2014/05/02 10:20:54 | WrapperManager: Initializing...
INFO | jvm 2 | 2014/05/02 10:20:54 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticsearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticsearchF
INFO | jvm 2 | 2014/05/02 10:20:54 |
INFO | jvm 2 | 2014/05/02 10:20:54 | WrapperSimpleApp Usage:
INFO | jvm 2 | 2014/05/02 10:20:54 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO | jvm 2 | 2014/05/02 10:20:54 |
INFO | jvm 2 | 2014/05/02 10:20:54 | Where:
INFO | jvm 2 | 2014/05/02 10:20:54 | app_class: The fully qualified class name of the application to run.
INFO | jvm 2 | 2014/05/02 10:20:54 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 2 | 2014/05/02 10:20:54 | application.
ERROR | wrapper | 2014/05/02 10:20:56 | JVM exited while loading the application.
STATUS | wrapper | 2014/05/02 10:21:01 | Launching a JVM...
INFO | jvm 3 | 2014/05/02 10:21:01 | WrapperManager: Initializing...
INFO | jvm 3 | 2014/05/02 10:21:01 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticsearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticsearchF
INFO | jvm 3 | 2014/05/02 10:21:01 |
INFO | jvm 3 | 2014/05/02 10:21:01 | WrapperSimpleApp Usage:
INFO | jvm 3 | 2014/05/02 10:21:01 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO | jvm 3 | 2014/05/02 10:21:01 |
INFO | jvm 3 | 2014/05/02 10:21:01 | Where:
INFO | jvm 3 | 2014/05/02 10:21:01 | app_class: The fully qualified class name of the application to run.
INFO | jvm 3 | 2014/05/02 10:21:01 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 3 | 2014/05/02 10:21:01 | application.
ERROR | wrapper | 2014/05/02 10:21:03 | JVM exited while loading the application.
STATUS | wrapper | 2014/05/02 10:21:07 | Launching a JVM...
INFO | jvm 4 | 2014/05/02 10:21:07 | WrapperManager: Initializing...
INFO | jvm 4 | 2014/05/02 10:21:07 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticsearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticsearchF
INFO | jvm 4 | 2014/05/02 10:21:07 |
INFO | jvm 4 | 2014/05/02 10:21:07 | WrapperSimpleApp Usage:
INFO | jvm 4 | 2014/05/02 10:21:07 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO | jvm 4 | 2014/05/02 10:21:07 |
INFO | jvm 4 | 2014/05/02 10:21:07 | Where:
INFO | jvm 4 | 2014/05/02 10:21:07 | app_class: The fully qualified class name of the application to run.
INFO | jvm 4 | 2014/05/02 10:21:07 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 4 | 2014/05/02 10:21:07 | application.
ERROR | wrapper | 2014/05/02 10:21:09 | JVM exited while loading the application.
STATUS | wrapper | 2014/05/02 10:21:14 | Launching a JVM...
INFO | jvm 5 | 2014/05/02 10:21:14 | WrapperManager: Initializing...
INFO | jvm 5 | 2014/05/02 10:21:14 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticsearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticsearchF
INFO | jvm 5 | 2014/05/02 10:21:14 |
INFO | jvm 5 | 2014/05/02 10:21:14 | WrapperSimpleApp Usage:
INFO | jvm 5 | 2014/05/02 10:21:14 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO | jvm 5 | 2014/05/02 10:21:14 |
INFO | jvm 5 | 2014/05/02 10:21:14 | Where:
INFO | jvm 5 | 2014/05/02 10:21:14 | app_class: The fully qualified class name of the application to run.
INFO | jvm 5 | 2014/05/02 10:21:14 | app_arguments: The arguments that would normally be passed to the
INFO | jvm 5 | 2014/05/02 10:21:14 | application.
ERROR | wrapper | 2014/05/02 10:21:16 | JVM exited while loading the application.
FATAL | wrapper | 2014/05/02 10:21:16 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2014/05/02 10:21:16 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2014/05/02 10:21:16 | <-- Wrapper Stopped
如何解决此问题?
答案 0 :(得分:0)
您正在使用的es版本是什么。我认为您正在使用旧服务运行尝试从github获取新服务并启动elasticsearch,它可以解决您的问题。
答案 1 :(得分:0)
试一试:
yum -y install java-1.7.0-openjdk*