Now that Elasticsearch 5.3.0 is out,
sudo yum install Elasticsearch
will install 5.3.0 version.
I have to install version 5.2.2
I used this to query what is available.
yum --showduplicates list elasticsearch | expand *Note* Spacewalk repositories are not listed below. You must run this command as root to access Spacewalk repositories. Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, : subscription-manager Available Packages elasticsearch.noarch 5.0.0-1 elasticsearch-5.x elasticsearch.noarch 5.0.1-1 elasticsearch-5.x elasticsearch.noarch 5.0.2-1 elasticsearch-5.x elasticsearch.noarch 5.1.1-1 elasticsearch-5.x elasticsearch.noarch 5.1.2-1 elasticsearch-5.x elasticsearch.noarch 5.2.0-1 elasticsearch-5.x elasticsearch.noarch 5.2.1-1 elasticsearch-5.x elasticsearch.noarch 5.2.2-1 elasticsearch-5.x elasticsearch.noarch 5.3.0-1 elasticsearch-5.x
The command I used to install 5.2.2 then was
sudo yum install elasticsearch-5.2.2-1
Install went fine. But the startup failed.
org.elasticsearch.transport.BindTransportException: Failed to bind to [9300-9400] at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:729) ~[elasticsearch-5.2.2.jar:5.2.2] at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:694) ~[elasticsearch-5.2.2.jar:5.2.2] .... ... blah ... ... at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) [elasticsearch-5.2.2.jar:5.2.2] Caused by: java.net.BindException: Cannot assign requested address
Funny thing is that when I install using
sudo yum install elasticsearch the instance starts up fine. But it is 5.3.0 which i do not want at this point.