我将在下面粘贴所有配置。我有一台3台电脑。配置名称节点1(impc2361)
core-site.xml
:
<configuration>
<property>
<name>fs.defaultFS</name>
<value>viewfs//ClusterA</value>
</property>
<property>
<name>fs.viewfs.mounttable.ClusterA.link./home</name>
<value>hdfs//impc2361:8021/home</value>
</property>
<property>
<name>fs.viewfs.mounttable.ClusterA.link./home1</name>
<value>hdfs//impc2359:8020/home1</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/hadoop/Downloads/hadoop2/tmpfold</value>
</property>
</configuration>
hdfs-site.xml
:
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.nameservices</name>
<value>home,home1</value>
</property>
<property>
<name>dfs.namenode.rpc-address.home</name>
<value>impc2361:8021</value>
</property>
<property>
<name>dfs.namenode.http-address.home</name>
<value>impc2361:50070</value>
</property>
<property>
<name>dfs.namenode.rpc-address.home1</name>
<value>impc2359:8020</value>
</property>
<property>
<name>dfs.namenode.http-address.home1</name>
<value>impc2359:50070</value>
</property>
</configuration>
我在其他节点上复制了相同的配置,即namenode2(impc2359)和datanode(impc2391)
问题
当我在网址中输入impc2361.htcitmr:50070
时,我无法获取namenode1(impc2361)的网页^页面它会抛出错误
HTTP错误404
访问/dfshealth.jsp时出现问题 原因:NOT_FOUND
当我输入impc2359.htcitmr:50070时,我得到一个namenode2(impc2359)的网页,但我找不到在core-site.xml中设置的文件夹/ home1
我无法通过群集终端进行任何操作,因为它会抛出一个只读的错误
hadoop fs -mkdir /a
mkdir:ViewFileSystem的InternalDir是只读的;操作= mkdirsPath = / A
请帮助