查看HDFS的默认命名空间命令:

1
hdfs getconf -confKey fs.default.name

或者

1
hdfs getconf -confKey fs.defaultFS

或者查询core-site.xml中的dfs.nameservices的值。

1
hdfs getconf -confKey dfs.nameservices