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>
?
?
?
?
|