Open Distro for elasticsearch & Kibana 1.13.3 installation

Hello,

Currently we are using the opendistroforelasticsearch-1.9.0. We need to upgrade it to opendistroforelasticsearch-1.13.3.

We currently follow the RPM package method for installation as mentioned in the following documentation,

We also install opendistroforelasticsearch-kibana-1.9.0 from the same yum repository.

The issue is the opendistroforelasticsearch-1.13.3 is not available in the Yum repository. What would be the best way to upgrade to the latest opendistroforelasticsearch and opendistroforelasticsearch-kibana ?

Hi team,

As the rpm package for 1.13.3 is not available in the yum repository. I tried installing as mentioned in the following page,

https://opendistro.github.io/for-elasticsearch/blog/2021/12/update-to-1-13-3/

which leads to,

https://opendistro.github.io/for-elasticsearch-docs/docs/install/tar/

When I try to run the script

./opendistro-tar-install.sh

I get the following output,

OpenDistro for Elasticsearch Security Demo Installer
 ** Warning: Do not use on production or public reachable systems **
Basedir: /home/ec2-user/opendistroforelasticsearch-1.13.3
Elasticsearch install type: .tar.gz on NAME="Amazon Linux"
Elasticsearch config dir: /home/ec2-user/opendistroforelasticsearch-1.13.3/config
Elasticsearch config file: /home/ec2-user/opendistroforelasticsearch-1.13.3/config/elasticsearch.yml
Elasticsearch bin dir: /home/ec2-user/opendistroforelasticsearch-1.13.3/bin
Elasticsearch plugins dir: /home/ec2-user/opendistroforelasticsearch-1.13.3/plugins
Elasticsearch lib dir: /home/ec2-user/opendistroforelasticsearch-1.13.3/lib
Detected Elasticsearch Version: x-content-7.10.2
Detected Open Distro Security Version: 1.13.1.0
grep: /home/ec2-user/opendistroforelasticsearch-1.13.3/config/elasticsearch.yml: Permission denied
tee: /home/ec2-user/opendistroforelasticsearch-1.13.3/config/kirk.pem: Permission denied
chmod: changing permissions of ‘/home/ec2-user/opendistroforelasticsearch-1.13.3/plugins/opendistro-performance-analyzer/pa_bin/performance-analyzer-agent’: Operation not permitted
chmod: changing permissions of ‘/dev/shm’: Operation not permitted
chmod: changing permissions of ‘/dev/shm/eic-hostkey-0F8gp26P’: Operation not permitted
chmod: changing permissions of ‘/home/ec2-user/opendistroforelasticsearch-1.13.3/bin/performance-analyzer-agent-cli’: Operation not permitted
done security
grep: /home/ec2-user/opendistroforelasticsearch-1.13.3/config/jvm.options: Permission denied
./opendistro-tar-install.sh: line 37: /home/ec2-user/opendistroforelasticsearch-1.13.3/config/jvm.options: Permission denied
./opendistro-tar-install.sh: line 38: /home/ec2-user/opendistroforelasticsearch-1.13.3/config/jvm.options: Permission denied
./opendistro-tar-install.sh: line 39: /home/ec2-user/opendistroforelasticsearch-1.13.3/config/jvm.options: Permission denied
./opendistro-tar-install.sh: line 40: /home/ec2-user/opendistroforelasticsearch-1.13.3/config/jvm.options: Permission denied
./opendistro-tar-install.sh: line 41: /home/ec2-user/opendistroforelasticsearch-1.13.3/config/jvm.options: Permission denied
done plugins
Checking kNN library
FILE EXISTS /home/ec2-user/opendistroforelasticsearch-1.13.3/plugins/opendistro-knn/knn-lib/libKNNIndexV2_0_11.so
KNN lib path not found, set new path
:/home/ec2-user/opendistroforelasticsearch-1.13.3/plugins/opendistro-knn/knn-lib

Since there were permission denied error I tried running the script with sudo which gave me the following output,

OpenDistro for Elasticsearch Security Demo Installer
 ** Warning: Do not use on production or public reachable systems **
Basedir: /home/ec2-user/opendistroforelasticsearch-1.13.3
Elasticsearch install type: .tar.gz on NAME="Amazon Linux"
Elasticsearch config dir: /home/ec2-user/opendistroforelasticsearch-1.13.3/config
Elasticsearch config file: /home/ec2-user/opendistroforelasticsearch-1.13.3/config/elasticsearch.yml
Elasticsearch bin dir: /home/ec2-user/opendistroforelasticsearch-1.13.3/bin
Elasticsearch plugins dir: /home/ec2-user/opendistroforelasticsearch-1.13.3/plugins
Elasticsearch lib dir: /home/ec2-user/opendistroforelasticsearch-1.13.3/lib
Detected Elasticsearch Version: x-content-7.10.2
Detected Open Distro Security Version: 1.13.1.0
/home/ec2-user/opendistroforelasticsearch-1.13.3/config/elasticsearch.yml seems to be already configured for Security. Quit.
done security
done plugins
Checking kNN library
FILE EXISTS /home/ec2-user/opendistroforelasticsearch-1.13.3/plugins/opendistro-knn/knn-lib/libKNNIndexV2_0_11.so
KNN lib path not found, set new path
:/home/ec2-user/opendistroforelasticsearch-1.13.3/plugins/opendistro-knn/knn-lib
[2022-01-11T14:59:17,404][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [0dc9d02a10ff8adcb] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:174) ~[elasticsearch-7.10.2.jar:7.10.2]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) ~[elasticsearch-7.10.2.jar:7.10.2]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.10.2.jar:7.10.2]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) ~[elasticsearch-cli-7.10.2.jar:7.10.2]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.10.2.jar:7.10.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) ~[elasticsearch-7.10.2.jar:7.10.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.10.2.jar:7.10.2]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:111) ~[elasticsearch-7.10.2.jar:7.10.2]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178) ~[elasticsearch-7.10.2.jar:7.10.2]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393) ~[elasticsearch-7.10.2.jar:7.10.2]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.10.2.jar:7.10.2]
        ... 6 more
uncaught exception in thread [main]
java.lang.RuntimeException: can not run elasticsearch as root
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:111)
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393)
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170)
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127)
        at org.elasticsearch.cli.Command.main(Command.java:90)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)

Please let me know what would be the best way to install the 1.13.3 version for both opendistroforelasticsearch and opendistroforelasticsearch-kibana.