如何安装在docker上运行的elasticsearch的xpack?
我正在尝试在ELK-Stack上安装xpack。 我会用3个Dockerfiles来做这个。 在这个时候,我的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
每一次,当我build立一个图像的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 – 内容
- logstash -content
有人知道一个很好的教程吗?
我认为这应该安装xpack插件
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install x-pack
xpack需要许可证,基本许可证是免费的
Elastic官方的Docker镜像已经包含5.x中的X-Pack。 只需从https://www.docker.elastic.coselect正确的图像。
我解决了这个问题:
在我上面的问题中,您可以看到我将zip添加到/ usr / share / elasticsearch / plugins。 问题是,弹性。 不能从这个目录打开邮编。
我的解决scheme:将zip添加到新的或其他目录中,然后再次开始构build过程。 在我的情况下,我在/ usr / share / elasticsearch中添加了zip。
问候TheLegend31
- 如何在Docker-compose.yml中传递构build参数与远程图像?
- 将本地目录挂载到不作为VOLUME公开的Docker容器path中
- 泊坞窗。 如何运行一个烧录服务器的主文件,在较深的文件结构中启动服务器
- dockerd进程CPU是否包含容器使用的CPU?
- Dockerfile中的Maven生命周期
- Docker-compose使用主机环境variables
- docker集装箱内运行docker?
- 为什么我不能得到由docker build创build的文件尾部的输出
- web_1 | /docker-entrypoint.sh:第99行:exec:bundle:未findapp_web_1用代码127退出