我有一台运行Ubuntu 12.04的虚拟机,并试图安装ElasticSearch。我已经按照这个gist在最好的'学习X的硬道路'的精神,一切都安装好 - 包下载,untarred,复制到正确的地方等在Ubuntu 12.04上安装ElasticSearch
当我运行它的问题来了 - 要么通过调用:
$ /usr/local/share/elasticsearch/bin/elasticsearch
或通过使用
输出被记录到wrapper.log
和下方被包括在服务包装器($ rselasticsearch console
)。我认为我可能会遇到JAVA home/classpath问题,但我不确定。
任何帮助最感激地收到!
Running ElasticSearch...
wrapper | Unable to write to the configured log directory: /usr/local/share/elasticsearch/logs (No such file or directory)
wrapper | The directory does not exist.
wrapper | Unable to write to the configured log file: /usr/local/share/elasticsearch/logs/service.log (No such file or directory)
wrapper | Falling back to the default file in the current working directory: wrapper.log
wrapper | --> Wrapper Started as Console
wrapper | Java Service Wrapper Community Edition 32-bit 3.5.14
wrapper | Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved.
wrapper | http://wrapper.tanukisoftware.com
wrapper |
wrapper | Launching a JVM...
jvm 1 | WrapperManager: Initializing...
jvm 1 | WrapperSimpleApp Error: Unable to locate the class org.elasticsearch.bootstrap.ElasticSearchF : java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticSearchF
jvm 1 |
jvm 1 | WrapperSimpleApp Usage:
jvm 1 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
jvm 1 |
jvm 1 | Where:
jvm 1 | app_class: The fully qualified class name of the application to run.
jvm 1 | app_arguments: The arguments that would normally be passed to the
jvm 1 | application.
wrapper | JVM exited while loading the application.
...
wrapper | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
wrapper | There may be a configuration problem: please check the logs.
wrapper | <-- Wrapper Stopped
更新
鉴于我们现在是在2016年,在Ubuntu上运行ES最简单的方法是使用多克。 docker run elasticsearch
将下载最新的并在前台运行它,显然你可以运行它作为一个守护进程,或运行特定版本(例如elasticsearch:1.7.2
),并设置端口等
确保您获取包装的正确版本太多,请参阅自述[这里](https://开头的github .com/elasticsearch/elasticsearch-servicewrapper“here”)。 – reim