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(); } }
public SortedSet<Upgradeable> getDistributedUpgrades() throws IOException { return UpgradeObjectCollection.getDistributedUpgrades( getUpgradeVersion(), getType()); }
public SortedSet<Upgradeable> getDistributedUpgrades() throws IOException { return UpgradeObjectCollection.getDistributedUpgrades( getUpgradeVersion(), getType()); }