标签:hadoop
系统: CentOS 6.3
JDK和hadoop的下载直接参考分布式安装...
不需要配置/etc/hosts
本机也需要免密码ssh登录
ssh localhost
<configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property>
<configuration> <property> <name>dfs.replication</name> <value>1</value> </property> </configuration>
<configuration> <property> <name>mapred.job.tracker</name> <value>localhost:9001</value> </property> </configuration>
export JAVA_HOME=/usr/java/jdk1.7.0_67
cd hadoop-1.2.1 ./bin/hadoop namenode -format 如果最后面的信息有下面这样的表示成功... 14/08/30 11:37:05 INFO common.Storage: Storage directory /home/hadoop/hadoop-1.2.1/tmp/dfs/name has been successfully formatted.
./bin/start-all.sh
通过jps命令查看, java的进程统计列表
/usr/java/jdk1.7.0_67/bin/jps
本文出自 “晓风残月” 博客,请务必保留此出处http://kinda22.blog.51cto.com/2969503/1582551
标签:hadoop
原文地址:http://kinda22.blog.51cto.com/2969503/1582551