[Hadoop]-YARN-伪分布式部署-hadoop-2.6.0-cdh5.7.0
前面已经部署好了HDFS, YARN比较容易了
1.修改配置文件
官方已经提供了一个配置文件,直接拿来用
#cp ~/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop/mapred-site.xml.template ~/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop/mapred-site.xml
#vi ~/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop/mapred-site.xml
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
#vi ~/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop/yarn-site.xml
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
2.启动Yarn
#~/app/hadoop-2.6.0-cdh5.7.0/sbin/start-yarn.sh
启动成功 打开 http://192.168.18.151:8088 看看 这是Yarn提供的UI视图
3.Hadoop命令别名化
#vi ~/.bash_profile
alias hdp_start_all="/home/hadoop/app/hadoop-2.6.0-cdh5.7.0/sbin/start-all.sh"
alias hdp_stop_all="/home/hadoop/app/hadoop-2.6.0-cdh5.7.0/sbin/stop-all.sh"
#source ~/.bash_profile