<property>
<name>fs.defaultFS</name>
<value>hdfs://master:9000</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>
<property>
<name>fs.default.name</name>
<value>hdfs://master:9000</value>
<description>Deprecated. Use (fs.defaultFS) property
instead</description>
</property>
你的配置文件出错了,这两个不能并存,一个是hadoop2.x的,一个hadoop0.x
把配置项目给去掉fs.default.name
也就是下面内容:
<property>
<name>fs.default.name</name>
<value>hdfs://master:9000</value>
<description>Deprecated. Use (fs.defaultFS) property
hdfs-site.xml:
<property>
<name>dfs.datanode.data.dir</name>
<value>file:/home/hadoop/data/hadoop-2.4.0</value>
<description>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.
</description>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:/home/hadoop/dfs/hadoop-2.4.0/name</value>
<description>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. </description>
</property>
<property> <name>dfs.namenode.rpc-address</name> <value>master:9001</value> <description> RPC address that handles all clients requests. In the case of HA/Federation where multiple namenodes exist, the name service id is added to the name e.g. dfs.namenode.rpc-address.ns1 dfs.namenode.rpc-address.EXAMPLENAMESERVICE The value of this property will take the form of nn-host1:rpc-port. </description> </property>