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.
If Elasticsearch can not bind transport to the entire port range from 9300 to 9400 for your interface, I think that something is wrong with your configuration (for example, you configured an IP address that no interface on the machine has).
I am out of ideas here.
When I use sudo yum install elasticsearch it works. But when I use sudo yum install elasticsearch-5.2.2-1 I see this issue.
Is the command I am using to install the 5.2.2 version right?
It is really weird but but using IP address instead of host name in the network.host in elasticsearch.yml solved the issue. I have no idea if there was something wrong in the way server was setup.
If your DNS is resolving the hostname to an address that is no interface on the machine has, then you would see this exception (and your environment is broken).
sudo yum install elasticsearch-5.2.2-1
are you able to install elatisearch 5.2.2 package with above command.
i am getting following message.
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
later created a new file elasticsearch.repo in the /etc/yum.repos.d/ directory
updated following content in file.
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
elasticsearch 5.3 is upgrading instead of 5.2.2(my requirement)
sudo yum install elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.