Fixed client API to get number of alive namenodes.
@@ -2834,11 +2834,8 @@ public void setMetaEnabled(final String src, final boolean metaEnabled)
}
}
-
public int getNameNodesCount() throws IOException {
-// return namenodeSelector.getNameNodesCount();
- throw new UnsupportedOptionsException("Not Implemented Yet");
-
+ return namenode.getActiveNamenodesForClient().size();
}
/**
