Hadoop prerequisite installation
Hadoop modules are mostly written in Java, so one of the prerequisites is to install Java. Hadoop daemons requires SSH to encrypt the communication between its nodes in an insecure environment. We will now go through a step by step guide for installing and configuring Java and SSH.
Java installation
Hadoop is compatible with both Oracle Java and OpenJDK, but it is preferable to install Oracle Java. To install it, use the following instructions:
- Download JDK and JRE from http://www.oracle.com/technetwork/java/javase/downloads/index.html.
- Copy the downloaded
tar.gz
file to the location where you want to install Java. - Extract and install Java by using the following command. Make sure to replace
8u144
with the Java version you have downloaded:
$ tar zxvf jdk-8u144-linux-x64.tar.gz
- The next step is to point the system to the extracted directory. In our case, files are extracted to the
;/home/hadoopadmin/jdk1.8.0_144/
folder. Execute the following command to make this...