SapHanaTutorial.Com HOME     Learning-Materials Interview-Q&A Certifications Quiz Online-Courses Forum Jobs Trendz FAQs  
     Explore The World of Hana With Us     
About Us
Contact Us
 Apps
X
HANA App
>>>
Hadoop App
>>>
Tutorial App on SAP HANA
This app is an All-In-One package to provide everything to HANA Lovers.

It contains
1. Courses on SAP HANA - Basics, Modeling and Administration
2. Multiple Quizzes on Overview, Modelling, Architeture, and Administration
3. Most popular articles on SAP HANA
4. Series of Interview questions to brushup your HANA skills
Tutorial App on Hadoop
This app is an All-In-One package to provide everything to Hadoop Lovers.

It contains
1. Courses on Hadoop - Basics and Advanced
2. Multiple Quizzes on Basics, MapReduce and HDFS
3. Most popular articles on Hadoop
4. Series of Interview questions to brushup your skills
Apps
HANA App
Hadoop App
';
Search
Stay Connected
Search Topics
Course Index
Close
X
Install Your Own Hadoop on Windows and Run MapReduce Programs
Course Overview
1. Introduction
2. Installation of Hadoop 1.0
3. MapReduce Programs in Hadoop 1.0
4. Installation of Hadoop 2.0
5. MapReduce Programs in Hadoop 2.0
6. What is Next?
<< Previous
Next >>
2.9. Configurations

    1. Open Cygwin and type the command “explorer .” to open Home folder.

      Hadoop Installation on Windows

      Create a folder with name “hadoop-dir”. And inside “hadoop-dir” folder create 2 folder with names “datadir” and “namedir”.
    2. In Cygwin execute chmod command to change folder permissions so that it will be accesses by Hadoop.
      $ chmod 755 hadoop-dir
      cd hadoop-dir
      $ chmod 755 datadir
      $ chmod 755 namedir

      You need to change the current folder using cd command before executing these commands.

      Hadoop Installation on Windows

    3. Open Cygwin terminal (Run as Administration) and execute following command
      $ cd hadoop-x.y.z
      $ cd conf
      $ explorer .

      It will open conf folder in Windows explorer window.

      Hadoop Installation on Windows

    4. Open hadoop-env.sh file to set Java home as you did it before for environmental variable setup
      Uncomment the line which contains “export JAVA_HOME” and provide your Java path.
      export JAVA_HOME= "C:\Java\"


      Hadoop Installation on Windows

    5. Open core-site.xml file and add below code.
      <configuration>
      <property>
      <name>fs.default.name</name>
      <value>hdfs://localhost:50000</value>
      </property>
      </configuration>


      Hadoop Installation on Windows

    6. Open mapred -site.xml file and add below code
      <configuration>
      <property>
      <name>mapred.job.tracker</name>
      <value>localhost:50001</value>
      </property>
      </configuration>


      Hadoop Installation on Windows

    7. Open hdfs -site.xml file and add below code
      Change the USER_FOLDER_NAME in the below code as per your your user name.
      <configuration>
      <property>
      <name>dfs.data.dir</name>
      <value>/home/USER_FOLDER_NAME/hadoop-dir/datadir</value>
      </property>
      <property>
      <name>dfs.name.dir</name>
      <value>/home/USER_FOLDER_NAME/hadoop-dir/namedir</value>
      </property>
      </configuration>


      Hadoop Installation on Windows

    8. For every file we changed, run dos2unix command.

      Hadoop Installation on Windows


Congratulation!! We have successfully installed Hadoop 1.0 on Windows.

In the next chapter we will see how to format NameNode folder, start the Hadoop daemons and run MapReduce programs.
<< Previous
Next >>

Leave a Reply

Your email address will not be published. Required fields are marked *

Current day month ye@r *

 © 2017 : saphanatutorial.com, All rights reserved.  Privacy Policy