0
点赞
收藏
分享

微信扫一扫

java.lang.IllegalArgumentException: URI has an authority component

和谐幸福的人生 2022-04-25 阅读 89
java.lang.IllegalArgumentException: URI has an authority component

来分析错了:是hdfs-site.xml配置文件中dfs.namenode.name.dir的配置有问题,或者没进行配置

正确的配置是:

进入修改

vim /home/bigdata/Opt/hadoop-2.10.1/etc/hadoop/hdfs-site.xml
<configuration>
		<property>
				<name>dfs.replication</name>
				<value>1</value>
		</property>
		<property>
				<name>dfs.namenode.name.dir</name>
				<value>file:/home/bigdata/Opt/hadoop-2.10.1/tmp/dfs/name</value>
		</property>
		<property>
				<name>dfs.datanode.data.dir</name>
				<value>file:/home/bigdata/Opt/hadoop-2.10.1/tmp/dfs/data</value>
		</property>
</configuration>

 

 

 

 

举报

相关推荐

0 条评论