Hadoop 单机部署
1.下载hadoop [url]wget http://mirror.bjtu.edu.cn/apache/hadoop/common/hadoop-0.20.2/hadoop-0.20.2.tar.gz[/url]
2.配置core-site.xml
3.配置marpred-site.xml
4.修改hadoop-env.xml 增加JAVA_HOME配置[root@vm-platform-dev-138115 hadoop-0.20.2]# bin/hadoop fs -ls /Found 1 itemsdrwxr-xr-x - root supergroup 0 2012-05-22 08:50 /tmp[root@vm-platform-dev-138115 hadoop-0.20.2]# bin/hadoop fs -mkdir /user/hadoop/test[root@vm-platform-dev-138115 hadoop-0.20.2]# bin/hadoop fs -chmod g+w /tmp[root@vm-platform-dev-138115 hadoop-0.20.2]# bin/hadoop fs -chmod g+w /user/hadoop/test[root@vm-platform-dev-138115 hadoop-0.20.2]# bin/hadoop fs -lsr /drwxrwxr-x - root supergroup 0 2012-05-22 08:50 /tmpdrwxr-xr-x - root supergroup 0 2012-05-22 08:50 /tmp/hadoop-rootdrwxr-xr-x - root supergroup 0 2012-05-22 08:50 /tmp/hadoop-root/mapreddrwx-wx-wx - root supergroup 0 2012-05-22 08:50 /tmp/hadoop-root/mapred/system-rw------- 3 root supergroup 4 2012-05-22 08:50 /tmp/hadoop-root/mapred/system/jobtracker.infodrwxr-xr-x - root supergroup 0 2012-05-22 08:52 /userdrwxr-xr-x - root supergroup 0 2012-05-22 08:52 /user/hadoopdrwxrwxr-x - root supergroup 0 2012-05-22 08:52 /user/hadoop/test