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>java
配置在core-site.xml中node
配置HA的时候配置在hdfs-site.xml文件中,不会出现这个问题app
二、oop
hadoop cdh5 beta2 运行Hadoop fs -mkdir 出现这个错误
ui
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ls: `.': No such file or directorycode
运行Hadoop fs -mkdir -p 文件夹名称便可orm
运行 hadoop fs -lsxml
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 inputhadoop
操做成功
ci