标签:replicat stand 手记 start site for sharp web浏览器 value
一.版本1.2.1
下载地址:https://archive.apache.org/dist/hadoop/common/hadoop-1.2.1/hadoop-1.2.1.tar.gz
二.Hadoop三种工作模式
1.单机(Standalone Operation)
2.伪分布式(Pseudo-Distributed Operation)
3.完全分布式(Fully-Distributed Operation)
三配置文件
1./conf/core-site.xml
# 配置namenode节点
<property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property>
# 配置Hadoop临时目录(A base for other temporary directories) <property> <name>hadoop.tmp.dir</name> <value>/data/hadoop</value> </property>
二../conf/hdfs-site.xml
# 配置副本本分数量,默认是三个(Default block replication. The actual number of replications can be specified when the file is created. The default is used if replication is not specified in create time.)
<property> <name>dfs.replication</name> <value>1</value> </property>
三.第一次启动服务
./bin/hadoop namenode -format 磁盘格式化
四.启动文件服务器
./bin/start-dfs
备注如碰到:Error: JAVA_HOME is not set错误.请修改文件./conf/hadoop-env.sh - JAVA_HOME节点
五.web浏览器访问
http://192.168.239.129:50070
标签:replicat stand 手记 start site for sharp web浏览器 value
原文地址:http://www.cnblogs.com/huizong/p/7440573.html