获取所有的注册在router里的active状态的集群。
/*** Get a list of all namespaces that are registered and active in the* federation.** @return List of name spaces in the federation* @throws IOException Throws exception if the namespace list is not* available.*/Set<FederationNamespaceInfo> getNamespaces() throws IOException;
例如,我们有一个Router集群,配置了hdfs1、hdfs2、hdfs3这样三个子集群。
那么这个方法返回值就是包含这三个集群FederationNamespaceInfo对象的集合。