ubuntu16.04 给hadoop2.7.7 配置yarn

1.安装hadoop
2.配置yarn
cd /usr/share/hadoop/hadoop-2.7.7/etc/hadoop

配置yarn-site.xml

sudo vim yarn-site.xml


        
                yarn.nodemanager.aux-services
                mapreduce_shuffle
        
        
                yarn.nodemanager.aux-services.mapreduce.shuffle.class
                org.apache.hadoop.mapred.ShuffleHandler
        

#保存退出:wq

配置mapred-site.xml

sudo vim mapred-site.xml

        
                mapreduce.framework.name
                yarn
        

#保存退出:wq
3.启动yarn
cd /usr/share/hadoop/hadoop-2.7.7
sudo ./sbin/start-dfs.sh
./sbin/start-yarn.sh
./sbin/mr-jobhistory-daemon.sh start historyserver
4.测试

访问localhost:8088
看到yarn页面则配置成功

你可能感兴趣的:(ubuntu16.04 给hadoop2.7.7 配置yarn)