简体   繁体   English

Elasticsearch可能无法在CentOS上启动

[英]Elasticsearch may have failed to start on CentOS

I have just installed elasticsearch on my CentOS 6.5 server. 我刚刚在我的CentOS 6.5服务器上安装了elasticsearch。 However When i run the following commands, saw failure message. 但是,当我运行以下命令时,看到失败消息。 I have also edited HEAP_SIZE like this link Unable to run ElasticSearch as a service on Ubuntu 我还编辑了HEAP_SIZE这样的链接无法在Ubuntu上将ElasticSearch作为服务运行

[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 /]# 

Here is service.log: 这是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

How can i fix this problem? 我该如何解决这个问题?

what is the es version you are using. 您正在使用的es版本是什么。 I think you are using old service to run es try to get new service from github and start the elasticsearch , It may solve your problem. 我认为您正在使用旧服务运行es尝试从github获取新服务并启动elasticsearch,这可能会解决您的问题。

去尝试一下:

yum -y install java-1.7.0-openjdk*

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM