report: FileSystem viewfs://default/ is not an HDFS file system
Usage: hdfs dfsadmin [-report] [-live] [-dead] [-decommissioning]
明显的 你hdfs-site.xml里面的参数配置的有问题。 修改core-site.xml 文件
ns1 : 是你想离开安全模式的集群的nameservices 名称hdfs-site.xml 可以找到
<property>
<name>fs.defaultFS</name>
<value>hdfs://ns1</value>
<!--value>viewfs://hdp310001</value-->
</property>
然后
hdfs dfsadmin -safemode leave
Safe mode is OFF in /10.80.239.1:9820
Safe mode is OFF in /10.80.239.2:9820
Safe mode is OFF in /10.80.239.3:9820
完成
页:
1
[2]