Elasticsearch-cli

Hi Team, while installing plugin or else using Elasticsearch-cli command getting an error. screenshot attached here.

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with </> icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

Could you also tell which version are you exactly using, how you exactly installed it and specifically if you changed the default settings?

Thank you @dadoonet I will do that, Elasticsearch version 8.8.1 installed on docker. I haven't changed default setting its running with x-pack authentication.

-> Downloading https://github.com/hashicorp/vault-plugin-database-elasticsearch
Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-17429742378198882369/plugin-descriptor.properties
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:373)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:424)
        at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
        at java.base/java.nio.file.Files.newInputStream(Files.java:158)
        at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:156)
        at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:714)
        at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:793)
        at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:776)
        at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:231)
        at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:216)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
        at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
        at org.elasticsearch.cli.Command.main(Command.java:90)
        at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)'''

How are you running your Docker instance?
What exact command are you running to install the plugin?

elasticsearch-plugin install GitHub - hashicorp/vault-plugin-database-elasticsearch: Provides short-lived credentials for Elasticsearch that are unique to each user or application.

sudo docker run --name elastic -p 9600:9400 -p 9500:9400 \
  --env http.host=x.x.x.x \
  --env transport.host=x.x.x.x \
  --env transport.port=9500 \
  --env http.port=9400 \
  --env discovery.type=single-node \
  --env xpack.security.enabled=true \
  --env "ES_JAVA_OPTS=-Xms512m -Xmx512m" \
  --env cluster.name=docker-cluster \
  --env bootstrap.memory_lock=true \
  --volume /data/new_es/:/usr/share/elasticsearch/data \
  --detach docker.elastic.co/elasticsearch/elasticsearch:8.8.1

You can not run this command outside the container.

So how do you run this command?

exec into the container and used this command elasticsearch-plugin install https://github.com/hashicorp/vault-plugin-database-elasticsearc

I think it needs to be a URL which specifies the exact version to download and not a github repository.

But where did you see that plugin and how this needs to be installed?

I mean that looking at the docs, it does not seem that you have to install something on elasticsearch side?

So where this line is coming from?

elasticsearch-plugin install https://github.com/hashicorp/vault-plugin-database-elasticsearch

here is the reference link

And where do you see this install command in the doc?

@dadoonet I tried with elasticsearh-plugin.yml file as well install command

image

I'm repeating my question in case you did not really read it:

where do you see this install command in the doc?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.