14/05/29 23:41:30 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
14/05/29 23:41:31 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
14/05/29 23:41:32 WARN common.Util: Path /usr/local/hd/dfs/name should be specified as a URI in configuration files. Please update hdfs configuration.
14/05/29 23:41:32 WARN common.Util: Path /usr/local/hd/dfs/name should be specified as a URI in configuration files. Please update hdfs configuration.
将 <property>
<name>dfs.namenode.name.dir</name>
<value>/usr/local/hd/dfs/name</value>
</property>
配置在core-site.xml中
配置HA的时候配置在hdfs-site.xml文件中,不会出现这个问题
2、
hadoop cdh5 beta2 运行Hadoop fs -mkdir 出现这个错误
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ls: `.': No such file or directory
运行Hadoop fs -mkdir -p 文件夹名称即可
运行 hadoop fs -ls
14/06/01 10:41:19 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Found 1 items
drwxr-xr-x - hadoop supergroup 0 2014-06-01 10:41 input
操作成功