在进入测试环境之前,我试图在一个虚拟机中配置Elasticsearch 7.2,因为除非确定软件包安装的所有路径,否则很难在Linux中撤销某些操作。
Java 12的安装一切顺利,并且通过RPM进行了Elasticsearch的安装。当我尝试启动该服务时,它给出以下错误,无论我做了什么更改,我都无法避免。首先,我想使用我的VM IP配置elasticsearch.yml文件,因为我想在其他VM上安装和配置fluentd和metricbeat并从中获取数据。以下是我从以下命令获得的日志。你们的问题很清楚吗,如果您需要更多信息,请告诉我。
谢谢。
$ sudo systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/elasticsearch.service.d
└─override.conf
Active: failed (Result: exit-code) since Fri 2019-06-28 21:33:14 IST; 6min ago
Docs: http://www.elastic.co
Process: 38220 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 38220 (code=exited, status=1/FAILURE)
Jun 28 21:33:14 kibana.dsk elasticsearch[38220]: at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
Jun 28 21:33:14 kibana.dsk elasticsearch[38220]: at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
Jun 28 21:33:14 kibana.dsk elasticsearch[38220]: at java.base/java.nio.file.Files.newByteChannel(Files.java:373)
Jun 28 21:33:14 kibana.dsk elasticsearch[38220]: at java.base/java.nio.file.Files.newByteChannel(Files.java:424)
Jun 28 21:33:14 kibana.dsk elasticsearch[38220]: at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
Jun 28 21:33:14 kibana.dsk elasticsearch[38220]: at java.base/java.nio.file.Files.newInputStream(Files.java:158)
Jun 28 21:33:14 kibana.dsk elasticsearch[38220]: at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:61)
Jun 28 21:33:14 kibana.dsk systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Jun 28 21:33:14 kibana.dsk systemd[1]: Unit elasticsearch.service entered failed state.
Jun 28 21:33:14 kibana.dsk systemd[1]: elasticsearch.service failed.