安装Hadoop出现URI has an authority component异常

安装hadoop的时候,发现启动namenode失败,报错如下:

ERROR namenode.NameNode: Failed to start nemanode.


core-site.xml文件配置:

<configuration>
    <property>  
        <name>hadoop.tmp.dir</name>  
        <value>file:/Users/hadoop/hadoop-2.7.2/tmp</value>  
        <description>A base for other temporary directories.</description>  
    </property> 
    <property>  
        <name>fs.default.name</name>  
        <value>hdfs://localhost:8020</value>  
    </property>  
</configuration>

hdcs-site.xml文件配置:

<configuration>
	<property>  
	    <name>dfs.namenode.name.dir</name>  
	    <value>file:/Users/hadoop/hadoop-2.7.2/tmp/dfs/name</value>
	</property>  
	<property>  
	    <name>dfs.datanode.data.dir</name>  
	    <value>file:/Users/hadoop/hadoop-2.7.2/tmp/dfs/data</value>
	</property>  
</configuration>

文件路径可自己建立文件夹。

你可能感兴趣的:(hadoop,NameNode)