在我安装Hadoop-2.8.0后,通过运行命令“ start-all.cmd”启动,Datanode,Nodemanager和Resourcemanager正常启动。但是,namenode不能以以下错误开头:
ERROR common.Util: Syntax error in URI C:\Hadoop-2.8.0\data\namenode. Please check hdfs configuration.
java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Hadoop-2.8.0\data\namenode
我检查了hdfs-site.xml,我对其进行了如下配置并尝试进行大量搜索,但无法修复错误。
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>C:\Hadoop-2.8.0\data\namenode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>C:\Hadoop-2.8.0\data\datanode</value>
</property>
</configuration>
您能帮我找出问题所在吗?