1

J'essaie d'installer xpack sur un ELK-Stack. Je vais le faire avec 3 Dockerfiles. A ce moment, mon Dockerfile ressembler à ceci:Comment installer xpack pour elasticsearch en cours d'exécution sur docker?

# 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 

Chaque fois, quand je construis le Dockerfile à une image, le processus de construction arrête ici:

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 

Je pense que le processus d'installation ne peut pas recherchez le fichier /x-pack-5.5.2.zip/plugin-descriptor.properties.

Le look structure postal comme celui-ci:

x-pack-5.5.2.zip

  • ElasticSearch -content
  • Kibana -content
  • logstash - contenu

Quelqu'un connaît-il un bon tutoriel pour cela?

Répondre

1

Je résolu le problème:

Dans ma question ci-dessus, vous pouvez voir que j'ajouter le zip dans le répertoire/usr/share/ElasticSearch/plugins. Le problème est, que les élastiques. Impossible d'ouvrir le fichier zip à partir de ce répertoire.

Ma solution: Ajoutez le fichier zip dans un nouveau répertoire ou dans un autre répertoire et relancez le processus de construction. Dans mon cas j'ai ajouté le zip dans/usr/share/elasticsearch.

Salutations TheLegend31

1

Je pense que cela devrait installer le plugin XPack

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

XPack nécessite une licence, une licence de base est gratuite

+0

J'ai essayé ceci et je reçois le même stacktrace. J'installe xpack depuis le ZIP local, parce que notre Proxy est compliqué dans ma compagnie. Je reçois la "dernière" version d'elasticsearch de notre propre dépôt docker et la dernière version de ES est 5.5.2. – TheLegend31

+0

je pense depuis xpack avoir une licence, il va essayer de se connecter avec elasctic –

+0

mais ils ont un tutoriel pour cela sur leur site Web, qui décrivent une installation avec le code postal local: https://www.elastic.co/guide/en /elasticsearch/reference/5.6/installing-xpack-es.html – TheLegend31

1

images Docker officielles élastiques contiennent déjà X-Pack dans 5.x. Il suffit de choisir la bonne image de https://www.docker.elastic.co.

+0

Merci pour votre réponse. Mon docker-deamon est derrière un proxy et je ne suis pas autorisé à télécharger les images directement depuis le hub. Nous avons notre propre dépôt et il n'y a pas les nouvelles images. Mais merci pour votre réponse! Je vais garder ça. – TheLegend31