Ubuntu 12.04 を実行している VM があり、ElasticSearch をインストールしようとしています。私は最高の「X を難しい方法で学ぶ」精神でこの要点に従いました。すべてが正常にインストールされます。パッケージはダウンロードされ、解凍され、適切な場所にコピーされます。
問題は、実行時に発生します-次のいずれかを呼び出します。
$ /usr/local/share/elasticsearch/bin/elasticsearch
またはサービスラッパーを使用する ( $ rselasticsearch console
)
出力はログに記録されwrapper.log
、以下に含まれています。JAVA ホーム / クラスパスに問題があるのではないかと思いますが、よくわかりません。
最も感謝して受け取った助け!
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 を使用することです。docker run elasticsearch
最新のものをダウンロードしてフォアグラウンドで実行します。もちろん、デーモンとして実行したり、特定のバージョン (例: elasticsearch:1.7.2
) を実行したり、ポートを設定したりできます。