Error in installing xpack plugin for elasticsearch


(Gaurav Agarwal) #1

C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1\bin>elasticsearch-plugin install x-pack
-> Downloading x-pack from elastic
[=================================================] 100%
Exception in thread "main" java.lang.IllegalStateException: Could not load plugin descriptor for exi
sting plugin [.installing-5449458442685265315]. Was the plugin built before 2.0?
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:339)
at org.elasticsearch.plugins.InstallPluginCommand.jarHellCheck(InstallPluginCommand.java:576
)
at org.elasticsearch.plugins.InstallPluginCommand.verify(InstallPluginCommand.java:558)
at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:601)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:215)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:204)
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:75)
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:48)
Suppressed: java.io.IOException: Could not remove the following files (in the order of attem
pts):
C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1\plugins.installing-4517633116304757261:
java.nio.file.DirectoryNotEmptyException: C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1
plugins.installing-4517633116304757261

            at org.apache.lucene.util.IOUtils.rm(IOUtils.java:329)
            at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:
  1.        ... 8 more
    

Caused by: java.nio.file.NoSuchFileException: C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1
.1\plugins.installing-5449458442685265315\plugin-descriptor.properties
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
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:123)
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:336)
... 11 more
java.io.IOException: Could not remove the following files (in the order of attempts):
C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1\plugins.installing-4517633116304757261
bcprov-jdk15on-1.58.jar: java.nio.file.AccessDeniedException: C:\Users\gagarwal3\Downloads\Elastic\E
lasticsearch\6.1.1\plugins.installing-4517633116304757261\bcprov-jdk15on-1.58.jar
C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1\plugins.installing-4517633116304757261:
java.nio.file.DirectoryNotEmptyException: C:\Users\gagarwal3\Downloads\Elastic\Elasticsearch\6.1.1
plugins.installing-4517633116304757261

    at org.apache.lucene.util.IOUtils.rm(IOUtils.java:329)
    at org.elasticsearch.plugins.InstallPluginCommand.close(InstallPluginCommand.java:743)
    at org.apache.lucene.util.IOUtils.close(IOUtils.java:89)
    at org.elasticsearch.plugins.PluginCli.close(PluginCli.java:53)
    at org.elasticsearch.cli.Command.lambda$main$0(Command.java:70)
    at java.lang.Thread.run(Thread.java:748)

I m getting this error when I try to install the xpack plugin please let me know how to install the xpack plugin


(Ragnar Patel) #2

mine had same problem...
can anybody help here?

need integration with elk+beat+x-pack


(system) #3

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