<\/span><\/h2>\r\n\r\n\r\n\r\nThe Elastic stack deployment requires Java. It supports both OpenJDK and Oracle Java. we recommend using the Oracle JDK 1.8. We will install Java 8 from the official Oracle rpm package.<\/p>\r\n\r\n\r\n\r\n
Java 8 JDK can be downloaded with the following wget command.<\/p>\r\n\r\n\r\n\r\n
wget --no-cookies --no-check-certificate --header \"Cookie: gpw_e24=http:%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie\" \"http:\/\/download.oracle.com\/otn-pub\/java\/jdk\/8u77-b02\/jdk-8u171-linux-x64.rpm\"<\/pre>\r\n\r\n\r\n\r\nThe next step is the installation with this rpm command:<\/p>\r\n\r\n\r\n\r\n
rpm -ivh jdk-8u171-linux-x64.rpm<\/pre>\r\n\r\n\r\n\r\nAt this point, you should check the Java JDK installation.<\/p>\r\n\r\n\r\n\r\n
java -version<\/pre>\r\n\r\n\r\n\r\nif everything is installed all right, you will see the following output:<\/p>\r\n\r\n\r\n\r\n
java version \"1.8.0_172\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_172-b11)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)<\/pre>\r\n\r\n\r\n\r\n