hadoop input output hadoop input output error_hdfs


这个问题是关于配置文件没有配好,在路径 /usr/local/hadoop/etc/hadoop中有两个配置文件,hdfs-site.xml和core-site.xml,配置成如下图(图一为hdfs,图二为core)

hadoop input output hadoop input output error_xml_02

hadoop input output hadoop input output error_xml_03


然后进入usr/local/hadoop/bin目录,进行格式化,格式化语句为./hdfs namenode -format(这是第一次使用的时候这么用,后面用hdfs fds xxxx),

出现status 0才行,如下图

hadoop input output hadoop input output error_hdfs_04


接下来就很顺利了