linux - Elasticsearch 可能无法在 CentOS 上启动

标签 linux elasticsearch centos6

我刚刚在我的 CentOS 6.5 服务器上安装了 elasticsearch。但是,当我运行以下命令时,看到失败消息。我还像这个链接那样编辑了 HEAP_SIZE Unable to run ElasticSearch as a service on Ubuntu

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

这是服务日志:

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

如何解决这个问题?

最佳答案

尝试一下:

yum -y install java-1.7.0-openjdk*

关于linux - Elasticsearch 可能无法在 CentOS 上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23421850/

相关文章:

regex - linux正则表达式匹配字符ß

linux - 如何知道当前焦点是 Linux 中的输入字段?

mysql - 将复杂的mysql条件转换为elasticsearch

python-2.7 - 如何为centos 6.6设置chromedriver工作以在python中运行selenium测试用例

go - 安装 nyt streamtools : go-bindata: Command not found

python-2.7 - 没有名为 os.path : wrong Python being called by bash 的模块

linux - 在 Linux 中打开 GPIO 有线 LED

linux - 戈朗 : ssh running remote scripts: No such file or directory

elasticsearch - 如何更新文档集的routingId

elasticsearch - ElasticSearch Snowball Analyzer无法与嵌套查询一起使用