I am building a new CentOS with ELK. CentOS version is:
# hostnamectl
Static hostname: localhost.localdomain
Icon name: computer-vm
Chassis: vm
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-693.17.1.el7.x86_64
Architecture: x86-64
Elasticsearch, Kibana and Logstash are all on version 6.2.1:
# curl -XGET 'localhost:9200/?pretty'
{
"name" : "jRoJAeb",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "VC7U_4e6TgKgQhXJa_z_FA",
"version" : {
"number" : "6.2.1",
"build_hash" : "7299dc3",
"build_date" : "2018-02-07T19:34:26.990113Z",
"build_snapshot" : false,
"lucene_version" : "7.2.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
However, I have problem to install x-pack. The error I am getting as below:
# /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///tmp/x-pack-6.2.1.zip -v
-> Downloading file:///tmp/x-pack-6.2.1.zip
Retrieving zip from file:///tmp/x-pack-6.2.1.zip
[=================================================] 100%Â Â
Exception in thread "main" java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.util.zip.ZipInputStream.read(Unknown Source)
at java.util.zip.ZipInputStream.closeEntry(Unknown Source)
at java.util.zip.ZipInputStream.getNextEntry(Unknown Source)
at org.elasticsearch.plugins.InstallPluginCommand.unzip(InstallPluginCommand.java:469)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:222)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:212)
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)
I don't have this problem for my another server which is installed previously with version 6.1.2. Any help is appreciated.