經過本教程您能夠學習到oop
Hadoop配置文件分兩類:學習
只有用戶想修改某一默認配置值時,才須要修改自定義配置文件,更改相應屬性值。code
(1)默認配置文件:存放在hadoop相應的jar包中。xml
經過這些配置文件,咱們能夠了解到各類配置屬性的初始值。例如咱們以前在core-site.xml中配置的臨時目錄的路徑以及文件存儲協議,在core-site.xml
中能夠找到對應的配置項,而且瞭解到其默認值:教程
··· <property> <name>hadoop.tmp.dir</name> <value>/tmp/hadoop-${user.name}</value> <description>A base for other temporary directories.</description> </property> ··· <!-- file system properties --> <property> <name>fs.defaultFS</name> <value>file:///</value> <description>The name of the default file system. A URI whose scheme and authority determine the FileSystem implementation. The uri's scheme determines the config property (fs.SCHEME.impl) naming the FileSystem implementation class. The uri's authority is used to determine the host, port, etc. for a filesystem.</description> </property> ···
這些文檔咱們能夠手動保存下來,也能夠在官網查詢到具體的信息,在有需求的同時查看對應的配置項默認值及其描述。ip
其位置位於${HADOOP_HOME}/etc
下,也就是咱們用來配置一些覆蓋默認屬性的配置文件,其名字和默認配置文件的名字一一對應一致。hadoop