Forum

This topic contains 0 replies, has 1 voice, and was last updated by  sumansinharoy 2 months, 4 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3125 Reply

    sumansinharoy
    Participant

    Steps for Ubundu:

    1. Download the JDK (jdk-8u121-linux-i586.tar.gz).
    2. Extract the downloaded tar file and extracted the folder named as “jdk1.8.0-121”.
    3. Create directory java (it could be any other name also like jvm etc,) inside the path /usr/lib from terminal.
    Command :
    cd /usr/lib
    sudo mkdir java

    4. Move the extracted jdk folder under /usr/lib/java
    Command :
    cd
    cd Downloads
    sudo mv dk1.8.0-121/ /usr/lib/java

    5. Now run the commands to let the OS know about the java utilies installed (set auto mode)
    Command :
    sudo update-alternatives –install “/usr/bin/java” “java” “/usr/lib/java/jdk1.8.0-121/bin/java” 1
    sudo update-alternatives –install “/usr/bin/javac” “javac” “/usr/lib/java/jdk1.8.0-121/bin/javac” 1
    sudo update-alternatives –install “/usr/bin/javaws” “javaws” “/usr/lib/java/jdk1.8.0-121/bin/javaws” 1

    6. Then, check the java version for proper installantion
    Command :
    java -version

    7. Set the environment variables in .bashrc file.
    Command :
    gedit ~/.bashrc

    Now, write the following lines in the opened .bashrc file.

    export JAVA_HOME=”/usr/lib/java/jdk1.8.0-121″
    PATH=$PATH:$JAVA_HOME/bin
    export PATH

    Save and close the .bashrc file.

    8. Open another terminal and check the environment variables.

    echo $JAVA_HOME
    echo $PATH

    9. Now down load the Hadoop library and components from hadoop.apache.org (hadoop-1.2.0.tar.gz or higher stable release). Extract the tar file. The hadoop library and components are extracted in the folder (hadoop-1.2.0).

    10. Create directory named as “hadoop” in the location /usr/lib/

    Command :
    cd
    cd /usr/lib
    sudo mkdir hadoop

    11. Move the hadoop extracted folder from Downloads directory to /usr/lib/hadoop

    Command :
    cd
    cd Downloads
    sudo mv hadoop-1.2.0/ /usr/lib/hadoop

    12. Open the .bashrc file setting environment variable HADOOP_HOME and PATH.

    gedit ~/.bashrc

    now write the following lines:

    export HADOOP_HOME=”/usr/lib/hadoop/hadoop-1.2.0″
    PATH=$PATH:$HADOOP_HOME/bin

    Save and close the .bashrc file

    13. Now open another terminal and check the hadoop environment variables

    echo $HADOOP_HOME
    echo $PATH

    14. Set the JAVA_HOME variable in the hadoop-ent.sh file in the location /usr/lib/hadoop/hadoop-1.2.0/conf

    gedit hadoop-env.sh

    write the following line

    JAVA_HOME=”/usr/lib/java/jdk1.8.0-121″

    Save & close the file

    15. Check the hadoop version for proper installation

    Command :
    cd
    hadoop version

    Here the standalone cluster setup is done.
    ===========================================

Viewing 1 post (of 1 total)
Reply To: Setup Standalone cluster
Your information:




cf22

Your Name (required)

Your Email (required)

Subject

Phone No

Your Message

Cart

  • No products in the cart.