hadoop伪分布式的安装

1. 解压缩hadoop.tar
tar -zxvf hadoop2.5.2.tar.gz -C /opt/install
2. 修改配置文件 6个
HADOOP_HOME/etc/hadoop/...
2.1 hadoop-evn.sh
export JAVA_HOME=/usr/java/jdk1.7.0_80
2.2 core-site.xml


fs.default.name
hdfs://hadoop1.baizhiedu.com:8020



hadoop.tmp.dir
/opt/install/hadoop-2.5.2/data/tmp

2.3 hdfs-site.xml

dfs.replication
1

2.4 yarn-site.xml

yarn.nodemanager.aux-services
mapreduce_shuffle

2.5 mapred-site.xml

mapreduce.framework.name
yarn

2.6 slaves (datanode)
hadoop1.baizhiedu.com
3. 格式化文件系统 hadoop_home
bin/hdfs namenode -format
4. 启动hadoop相关进程
sbin/hadoop-daemon.sh start namenode
sbin/hadoop-daemon.sh start datanode
sbin/yarn-daemon.sh start resourcemanager
sbin/yarn-daemon.sh start nodemanager
5. 验证
ps -ef | grep java

你可能感兴趣的:(hadoop伪分布式的安装)