How-to Install Hadoop on OpenSUSE Linux Step-by-Step Guide

December 4th, 2013 by thelinuxevangelist

Hadoop 2.X Quick-Start on OpenSUSE

Hello OpenSUSE User! This Tutorial Shows You Step-by-Step How-to Install and Getting-Started with Apache Hadoop/Map-Reduce vanilla in Pseudo-Distributed mode on OpenSUSE 11.x/12.x/13.x/42.x-Leap 32/64bit GNU/Linux Desktop.

Hadoop is a distributed master-slave that consists of the Hadoop Distributed File System (HDFS) for storage and Map-Reduce for computational capabilities.

The Hadoop Distributed File System (HDFS) is a distributed file system that spreads data blocks across the storage defined for the Hadoop cluster.

The foundation of Hadoop is the two core frameworks YARN and HDFS. These two frameworks deal with Processing and Storage.

The Guide Describe a System-Wide Installation with Root Privileges but You Can Easily Convert the Procedure to a Local One.

The Content and Details of How-to Install Hadoop on OpenSUSE Linux are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands.

Install Hadoop on OpenSUSE Linux - Featured
  1. Download Latest Apache Hadoop Stable Release:

    Apache Hadoop Binary tar.gz

  2. Double-Click on Archive and Extract Into /tmp Directory

    Linux OpenSUSE Apache Hadoop Stable Quick-Start - Unity Extract tar.gz Archive

    Or from CLI:

    tar xvzf *hadoop*tar.gz -C /tmp
  3. Open Console Terminal Shell emulator window
    (Press “Enter” to Execute Commands)

    Install Hadoop for OpenSUSE - Kde OpenSUSE Open Terminal
  4. Relocate Apache Hadoop Directory
    Get SuperUser Privileges:

    sudo su

    If Got “User is Not in Sudoers file” then Look: Solution
    Then Switch the contents with:

    mv /tmp/hadoop* /usr/local/

    Make an hadoop symlink directory:

    ln -s /usr/local/hadoop* /usr/local/hadoop
  5. Make Hadoop Temporary Directory:

    mkdir /usr/local/hadoop/tmp

    Set the root as Owner:

    chown -R root:root /usr/local/hadoop*
  6. How-to Install Required Java JDK 7+ on OpenSUSE:

    Install Oracle JDK 7+ for OpenSUSE
  7. Set JAVA_HOME in Hadoop Env File
    Make the Conf directory:

    mkdir /usr/local/hadoop/conf

    Make an Env file:

    nano /usr/local/hadoop/conf/


    export JAVA_HOME=/usr/lib/jvm/[oracleJdkVersion]

    Change [oracleJdkVersion] with the current Version:
    Ctrl+x to Save & Exit from nano Editor :)

  8. Eclipse Hadoop 2.X Integration with Free Plugin:

    Hadoop 2.X Eclipse Plugin SetUp
  9. Hadoop Configuration for Pseudo-Distributed mode
    nano /usr/local/hadoop/conf/core-site.xml


     <?xml version="1.0"?>
     <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>


    nano /usr/local/hadoop/conf/hdfs-site.xml


     <?xml version="1.0"?>
     <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
     <!-- specify this so that running 'hadoop namenode -format'
     formats the right dir -->


    nano /usr/local/hadoop/conf/mapred-site.xml


     <?xml version="1.0"?>
     <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  10. SetUp Local Path & Environment
    Exit from SuperUser to the normal User:


    Change to the Home directory:

    cd $HOME

    Edit the bash Config file:

    nano .bashrc


    export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin
    export JAVA_HOME=/usr/lib/jvm/<oracleJdkVersion>

    Then Load the New Setup:

    source $HOME/.bashrc
  11. SetUp Needed Local SSH Connection
    sudo su -c "openssh-server"

    Generate SSH Keys to Access:

    ssh-keygen -b 2048 -t rsa
    cp ~/.ssh/ ~/.ssh/authorized_keys

    Testing Connection:

  12. Formatting HDFS
    hadoop namenode -format

    Install Hadoop for OpenSUSE - Terminal Apache Hadoop HDFS Formatting Succcess

  13. Starting Up Hadoop Database
  14. Apache Hadoop Database Quick-Start Guide:

    Hadoop MapReduce Quick-Start

Tags: , , , , , , , , , , , , ,