gpt4 book ai didi

docker - 如何安装Xpack在Docker上运行的Elasticsearch?

转载 作者:行者123 更新时间:2023-12-02 18:54:32 25 4
gpt4 key购买 nike

我正在尝试在ELK-Stack上安装xpack。
我将使用3个Dockerfile进行此操作。此时,我的Dockerfile如下所示:

# Orginal Image von elasticsearch laden
FROM docker.marksys.de/elasticsearch:latest
USER root

ADD ./x-pack-5.5.2.zip /usr/share/elasticsearch/plugins

RUN bin/elasticsearch-plugin install file:///usr/share/elasticsearch/plugins/x-pack-5.5.2.zip/
RUN elasticsearch

每当我将Dockerfile生成为镜像时,生成过程都会在此处停止:
Exception in thread "main" java.lang.IllegalStateException: Could not load plugin descriptor for existing plugin [x-pack-5.5.2.zip]. Was the plugin built before 2.0?
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:334)
at org.elasticsearch.plugins.InstallPluginCommand.jarHellCheck(InstallPluginCommand.java:518)
at org.elasticsearch.plugins.InstallPluginCommand.verify(InstallPluginCommand.java:500)
at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:543)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:217)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:201)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:69)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)
at org.elasticsearch.cli.Command.main(Command.java:88)
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)
Caused by: java.nio.file.FileSystemException: /usr/share/elasticsearch/plugins/x-pack-5.5.2.zip/plugin-descriptor.properties: Not a directory
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
at java.nio.file.Files.newInputStream(Files.java:152)
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:114)
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:331)
... 11 more

我认为安装过程找不到/x-pack-5.5.2.zip/plugin-descriptor.properties文件。

ZIP结构如下所示:

x-pack-5.5.2.zip

  • elasticsearch -content
  • Kibana -content
  • logstash -content


有人知道一个很好的教程吗?

最佳答案

我认为这应该安装xpack插件

RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install x-pack

xpack需要许可证,基本许可证是免费的

关于docker - 如何安装Xpack在Docker上运行的Elasticsearch?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46641466/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com