Hi everybody,
we are very eager to try the SAML capabilities in this new version, but when I am attempting to perform a rolling upgrade as per these instructions:
https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html
The following happens (including my command history):
[ec2-user]$ curl -XPOST 'localhost:9200/_flush/synced?pretty'
[ec2-user]$ sudo systemctl stop elasticsearch.service
[ec2-user]$ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.0.rpm
[ec2-user]$ sudo rpm --force --install elasticsearch-6.2.0.rpm
warning: elasticsearch-6.2.0.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
warning: /etc/elasticsearch/jvm.options created as /etc/elasticsearch/jvm.options.rpmnew
[ec2-user@ip ~]$ cd /usr/share/elasticsearch
[ec2-user@ip elasticsearch]$ sudo bin/elasticsearch-plugin install x-pack
-> Downloading x-pack from elastic
[=================================================] 100%
ERROR: plugin directory [/usr/share/elasticsearch/plugins/x-pack] already exists; if you need to update the plugin, uninstall it first using command 'remove x-pack'
[ec2-user@ip elasticsearch]$ remove x-pack
-bash: remove: command not found
[ec2-user@ip elasticsearch]$ sudo bin/elasticsearch-plugin remove x-pack
Exception in thread "main" java.lang.NoSuchMethodError: org.elasticsearch.plugins.PluginInfo.getExtendedPlugins()Ljava/util/List;
at org.elasticsearch.plugins.RemovePluginCommand.execute(RemovePluginCommand.java:91)
at org.elasticsearch.plugins.RemovePluginCommand.execute(RemovePluginCommand.java:67)
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)
It is an ec 2 instance center 7 that had an elastic 6.1.2 with x-pack correctly installed, it is my 1st time performing a rolling upgrade to the xpack ... am I missing something? Thanks for the help!
note: the rpm --force was imrpovising after getting this warning:
[ec2-user ~]$ sudo rpm --install elasticsearch-6.2.0.rpm
warning: elasticsearch-6.2.0.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
file /etc/elasticsearch/jvm.options from install of elasticsearch-0:6.2.0-1.noarch conflicts with file from package elasticsearch-0:6.1.2-1.noarch
file /usr/share/elasticsearch/bin/elasticsearch from install of elasticsearch-0:6.2.0-1.noarch conflicts with file from package elasticsearch-0:6.1.2-1.noarch
file /usr/lib/systemd/system/elasticsearch.service from install of elasticsearch-0:6.2.0-1.noarch conflicts with file from package elasticsearch-0:6.1.2-1.noarch
file /usr/share/elasticsearch/bin/elasticsearch-env from install of elasticsearch-0:6.2.0-1.noarch conflicts with file from package elasticsearch-0:6.1.2-1.noarch
file /usr/share/elasticsearch/modules/aggs-matrix-stats/plugin-descriptor.properties from install of elasticsearch-0:6.2.0-1.noarch conflicts with file from package elasticsearch-0:6.1.2-1.noarch