elasticsearch - Elastic Search 6.x不断失败

标签 elasticsearch java-8 raspberry-pi3 java-11 elasticsearch-6

(像这样的论坛上的新内容让我大笑)
无论如何,我只是想知道是否有人可以帮助我,所以我已经通过DEB软件包安装了Elasticsearch 6.8.9,并通过GitHub安装了Elasticsearch头。经过研究后,我做了以下工作,但是由于某种原因,ElasticSearch在启动后会退出,因此无法正常运行。它在ElasticSearch 2.4上运行良好,但是由于头部需要通过GitHub的5.x,因此我一直在努力使其正常工作。我试图通过安装sudo apt-get install elasticsearch还有这些apt-get安装脚本:

sudo apt-get install openjdk-8-jdk openjdk-8-jre-headless
但也不能正常工作。任何意见,将不胜感激。非常感谢:
/etc/elasticsearch/jvm.options
# Reduce RAM heap size to 128MB (was 1GB)

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space
-Xms128m
-Xmx128m
/etc/elasticsearch/elasticsearch.yml
# Set network.host to 0.0.0.0

network.host: 0.0.0.0
sudo nano / etc / environment
# Set JAVA_HOME to target Java8 instead of Java11
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-armhf/bin/java"
sudo update-alternatives --config java
(选择选项2,按Enter键,那里没有问题)
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-11-openjdk-armhf/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-armhf/bin/java      1111      manual mode
* 2            /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
来源/ etc / environment
回声$ JAVA_HOME
/usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java
java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1+rpi1-b01)
OpenJDK Client VM (build 25.212-b01, mixed mode)
我什至通过/ usr / share / elasticsearch文件夹完成了此命令wget -qO - https://artifacts.elastic.co/GPG-KEY- **elasticsearch** | sudo apt-key add -但这是我不断得到的最终结果。我试图查看日志中是否存在任何特定错误,但无法对其进行过滤。运行Raspberry Pi 3。
**●** elasticsearch.service - ElasticsearchLoaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: **failed** (Result: exit-code) since Sat 2020-07-04 15:48:04 BST; 20h ago
Docs: http://www.elastic.co
Process: 1066 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet **(code=exited, status=1/FAILURE)**
Main PID: 1066 (code=exited, status=1/FAILURE)
Jul 04 15:47:03 raspberrypi systemd[1]: Started Elasticsearch.
Jul 04 15:47:03 raspberrypi elasticsearch[1066]: warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME
Jul 04 15:48:04 raspberrypi systemd[1]: **elasticsearch.service: Main process exited, code=exited, status=1/FAILURE**
Jul 04 15:48:04 raspberrypi systemd[1]: **elasticsearch.service: Failed with result 'exit-code'.****~**

最佳答案

我认为ES日志本身没有任何内容(可能类似于/ var / log / elasticsearch /)?
否则,您是否有任何现有索引? ES 6与ES 2.X或更早版本的索引不兼容,请参阅here
如果您已有索引并想使用ES6,则必须升级到ES5,重新索引数据,然后再升级到ES6。

关于elasticsearch - Elastic Search 6.x不断失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62740615/

相关文章:

ruby - Elasticsearch:SearchPhaseExecutionException/解析失败

java - Java 中的参数化良构和捕获转换

java - 具有继承的构造函数中的反射 (Java)

docker - docker-compose在全新Raspbian安装中崩溃

elasticsearch - [Elasticsearch]:无法恢复主碎片

c# - 如何在 Elastic Search 中进行双重嵌套聚合?

python - Raspberry Pi 3 B+ BLE 升级后扫描失败(使用Stretch)

python - 按下按钮时的PyAudio记录

elasticsearch - 带有date_histogram的Elasticsearch聚合为存储桶提供了错误的结果

java - 使用流收集 HashMap 中的事件