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
dfs.replication 1 dfs.namenode.name.dir file:/home/bigdata/Opt/hadoop-2.10.1/tmp/dfs/name dfs.datanode.data.dir file:/home/bigdata/Opt/hadoop-2.10.1/tmp/dfs/data



