Hadoop引數:fs.defaultFS、 dfs.name.dir 、 dfs.data.dir
阿新 • • 發佈:2019-01-06
fs.defaultFS
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.
預設檔案系統的名稱。一個URI和權威確定檔案系統實現的方案。uri的計劃決定配置屬性(fs.SCHEME.impl)命名檔案系統實現類。uri的權威是用來確定主機、埠等對於一個檔案系統
<property>
<name>fs.defaultFS</name>
<value>hdfs://172.18.11.2:9000</value>
</property>
dfs.name.dir
Determines where on the local filesystem the DFS name node should store the name table(fsimage). If this is a comma-delimited list of directories then the name table is replicated in all of the directories, for redundancy.<name>dfs.name.dir</name>
<value>/pvdata/hadoopdata/name/,/opt/hadoopdata/name/</value>
</property> dfs.data.dir Determines where on the local filesystem an DFS data node should store its blocks. If this is a comma-delimited list of directories, then data will be stored in all named directories, typically on different devices. Directories that do not exist are ignored.
<name>dfs.data.dir</name>
<value>/dev/sda3/hadoopdata/,/dev/sda1/hadoopdata/</value>
</property>