• Welcome to XF2 Addons. You can buy my Premium membership for $35 per year, and this gives you access to download any or ALL of the 275+ add-ons that I have developed for Xenforo 2.x. In addition, Premium members will get technical support. Once the Premium membership has expired you can continue to use the installed addons on your forum as long as you like.

Install Elasticsearch 7.6.0


Andy

Administrator
Elasticsearch 7.6.0

For Centos 7 servers.

See this document for instructions:

https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html

1581548126322.jpg


Once Elasticsearch 7.6.0 is installed you will need to execute the following command:

systemctl daemon-reload

To stop Elasticsearch issue the following command:

service elasticsearch stop

To start Elasticsearch issue the following command:

service elasticsearch start

Then to get Elasticsearch status issue the following command:

service elasticsearch status

You can verify the Elasticsearch 7.6.0 is running with this command:

curl -XGET 'localhost:9200'
 

gerryvz

Member
I am running Ubuntu 18.04.3. I have updated Elasticsearch by adding the 7.x PPM, which is checked when doing apt-get update && apt-get upgrade updates (the Ubuntu equivalent to yum check-update or yum upgrade).

The PPA for Ubuntu for Elasticsearch is: https://artifacts.elastic.co/packages/7.x/apt
 

gerryvz

Member
When I recently updated my Elasticsearch 7.5.2 installation to 7.6.0, the system returned an error, noting that my current Java 8 installation would not work, and that a newer version of Java/JDK was required.

With Elasticsearch version 7.5.2 and below, you could use Java 8 and higher as the runtime environment. With ES 7.6.0 and higher, Java 11 or higher is seemingly required (at least, it was when I tried to update it on my forum).

This means that you must upgrade your Java environment (JDK) to Java 11 or higher. I did this by removing the Java 8 PPA from my Ubuntu list. It has not been updated since early 2019 anyway, because of Oracle’s licensing changes relating to Java. Java 11 is the latest LTS version of Java after Java 8, and Java 8 is no longer receiving updates from Oracle. I would not recommend using Java 9, 10 or 12, as they are not LTS (long-term supported) versions of Java/JDK.

I switched over to the OpenJDK environment and installed Java 11, by adding an appropriate PPA to my Ubuntu PPA list (also: see first command below). This works for Ubuntu, Debian and relates distros. Obviously things will be different for CentOS, RHEL and other non-Debian-based distros.

The commands to add the Java 11 OpenJDK PPA, and then to install Java 11, on Debian-based Linux distros, are:

add-apt-repository ppa:openjdk-r/ppa
apt-get update
apt install openjdk-11-jdk


The previous commands assume you are root. If not, please preface each command above with sudo

The URL that will appear in your PPA list to be checked with apt-get update && apt-get upgrade operations is:

http://ppa.launchpad.net/openjdk-r/ppa/ubuntu

After installing Java 11, and checking it with the command java -version you will find that ES 7.6.x will install just fine.

Screen Shot 2020-02-18 at 8.08.59 AM.jpg
 
Top