Introduction to Hadoop deployment under Mac (MacOSX10.8.3 + Hadoop-1.0.4)

Source: Internet
Author: User
OneCoder deploys the Hadoop environment on its own notebook for research and learning, recording the deployment process and problems encountered. 1. Install JDK. 2. Download Hadoop (1.0.4) and configure the JAVA_HOME environment variable in Hadoop. Modify the hadoop-env.sh file. ExportJAVA_HOMELibraryJavaJavaVirtualMachinesjdk1.7.0_10.jdk

OneCoder deploys the Hadoop environment on its own notebook for research and learning, recording the deployment process and problems encountered. 1. Install JDK. 2. Download Hadoop (1.0.4) and configure the JAVA_HOME environment variable in Hadoop. Modify the hadoop-env.sh file. Export JAVA_HOME =/Library/Java/JavaVirtualMachines/jdk1.7.0 _ 10.jdk/

OneCoder deploys the Hadoop environment on its own notebook for research and learning, recording the deployment process and problems encountered.

1. Install JDK.
2. Download Hadoop (1.0.4) and configure the JAVA_HOME environment variable in Hadoop. Modify the hadoop-env.sh file.
Export JAVA_HOME =/Library/Java/JavaVirtualMachines/jdk1.7.0 _ 10.jdk/ Contents/Home/
3. Configure SSH
Generate key

ssh-keygen -t dsa -P '' -f ~/.ssh/onecoder_dsa

Append the public key to the key.

cat ~/.ssh/onecoder_rsa.pub >> ~/.ssh/authorized_keys

Enable remote access for Mac OS. System settings-share-remote Logon

4. Configure the local paths of namenode and datanode hdfs
Configure in hdfs-site.xml

  
  
   dfs.name.dir
   
  
   /Users/apple/Documents/hadoop/name/
  
 
    
  
   dfs.data.dir
    
  
   /Users/apple/Documents/hadoop/data/
  
  
      
  
   dfs.replication
       
  
   1
    
 

Because it is a verification environment, data backup is set to 1.

5. Format namenode

bin/Hadoop NameNode -format

6. Start hadoop

Can be started directly through the start-all.sh under the bin, you can also through

hadoop namenode (datanode、jobtracker、tasktracker)

In the preceding order.
The latter allows you to conveniently view the startup log for troubleshooting. You can also view the access address and port on the monitoring page in the console log. For example:
13/04/04 15:52:18 INFO http. HttpServer: Jetty bound to port 50070
Of course, you can be familiar with these addresses. Go to the web Monitoring page in a browser. Everything is ready. Hadoop environment deployment is complete.


Others.
Warning: Unable to load realm info from SCDynamicStore
The solution offered on the Web is: set it in hadoop-env.sh

Export HADOOP_OPTS = "-Djava. security. krb5.realm = OX. AC. UK-Djava. security. krb5.kdc = kdc0.ox. ac. uk: kdc1.ox. ac. uk"

However, it is invalid in OneCoder, but does not affect the Hadoop environment.

Introduction to Hadoop deployment under Mac (Mac OSX 10.8.3 + Hadoop-1.0.4), thanks to the original author for sharing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.