Saturday, January 21, 2012

Configure Hadoop on windows


Configure Hadoop

Now that Hadoop has been unpacked, we are ready to configure it.
    1. Open a new Cygwin window and execute the following commands:
    cd hadoop-0.19.1 cd conf explorer .
    Bringing up explorer window

  1. The last command will cause the Explorer window for the 'conf' directory to pop up. Minimize it for now or move it to the side.
  2. Launch Eclipse.
  3. Bring up the 'conf' Explorer window opened in Step 2 and drag the filehadoop-site to the Eclipse main window.
  4. Insert the following lines between <configuration> and </configuration>tags.
    <property>
    
    <name>fs.default.name</name>
    
    <value>hdfs://localhost:9100</value>
    
    </property>
    
    <property>
    
    <name>mapred.job.tracker</name>
    
    <value>localhost:9101</value>
    
    </property>
    
    <property>
    
    <name>dfs.replication</name>
    
    <value>1</value>
    
    </property> 
            

    Editing site configuration file

  5. Close the Eclipse, Cygwin command and Explorer windows.

No comments:

Post a Comment

Please feel free to contact or comment the article

Search This Blog