As I am planning to learn Hadoop, I wanted to install Hadoop (2.7.3) on my Ubuntu (16.04 LTS) and I followed the steps mentioned in the documentation on the Apache Hadoop website. I encountered few problems which are mentioned below, spent some time finding solution to them.
Below are the steps I followed and the description of the error is at the end of this post and also I have mentioned what I missed and what caused these errors.
Step 1. Download Hadoop installation file. For Hadoop 2.7.3 version I used the following link
Java Script Code to Find Key code
You can completely remove the OpenJDK and fresh Install Oracle Java JDK by the following steps: Remove OpenJDK completely by this command: sudo apt-get purge openjdk-\*Download the Oracle Java JDKhere. Note: download appropriate file, for example if your system is x64 Ubuntu (i.e, Debian) the download file is named like this: jdk-8u51-linux-x64.tar.gz To find which version is your OS, check hereCreate a folder named java in /usr/local/by this command: sudo mkdir -p /usr/local/javaCopy the Downloaded file in the directory /usr/local/java. To do this, cd into directory where downloaded file is located and use this command for copying that file to /usr/local/java/: sudo cp -r jdk-8u51-linux-x64.tar.gz /usr/local/java/CD into /usr/local/java/ directory and extract that copied file by using this command: sudo tar xvzf jdk-8u51-linux-x64.tar.gzAfter extraction you must see a folder named jdk1.8.0_51.Update PATH file by opening /etc/profile file by the command sudo nano /etc/profile and past…