下載hadoop的原生版本,版本選擇2.6.0,下載地址
https://archive.apache.org/dist/hadoop/common/hadoop-2.6.0/hadoop-2.6.0.tar.gz
解壓後可以看到
其中配置文件在 /etc/hadoop目錄下
解壓後默認的配置文件都是空的,需要自行配置,下面爲配置文件的作用
其中比較重要的是前4個配置文件,分別爲core-site.xml,hdfs-site.xml,mapred-site.xml,yarn-site.xml
可以參考:Hadoop參數彙總
1.core-site.xml
Hadoop全局配置參數,例如HDFS和MapReduce常用的I/O設置等
https://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-common/core-default.xml
2.hdfs-site.xml
hdfs配置文件
https://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml
3.mapred-site.xml
mapreduce配置文件
4.yarn-site.xml
yarn配置文件
5.httpfs-site.xml
httpfs模塊配置文件
6.capacity-scheduler.xml
配置了yarn資源調度器運行中的各項參數
7.hadoop-policy.xml
用於配置服務級別授權
8.kms-acls.xml
9.kms-site.xml