public static void main(String[] args) throws IOException { UpgradeManagerNamenode um = new UpgradeManagerNamenode(); SortedSet<Upgradeable> uos; uos = UpgradeObjectCollection.getDistributedUpgrades(-4, HdfsConstants.NodeType.NAME_NODE); System.out.println(uos.size()); um.startUpgrade(); }