Examples of UpgradeStatusReport


Examples of org.apache.hadoop.hdfs.server.common.UpgradeStatusReport

      printUsage("-upgradeProgress");
      return -1;
    }

    DistributedFileSystem dfs = (DistributedFileSystem) fs;
    UpgradeStatusReport status = dfs.distributedUpgradeProgress(action);
    String statusText = (status == null ?
        "There are no upgrades in progress." :
          status.getStatusText(action == UpgradeAction.DETAILED_STATUS));
    System.out.println(statusText);
    return 0;
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.common.UpgradeStatusReport

    if(currentUpgrades == null) { // no upgrades are in progress
      FSImage fsimage = namesystem.getFSImage();
      isFinalized = fsimage.isUpgradeFinalized();
      if(isFinalized) // upgrade is finalized
        return null// nothing to report
      return new UpgradeStatusReport(fsimage.getLayoutVersion(),
                                     (short)101, isFinalized);
    }
    UpgradeObjectNamenode curUO = (UpgradeObjectNamenode)currentUpgrades.first();
    boolean details = false;
    switch(action) {
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.common.UpgradeStatusReport

  }

  static String getUpgradeStatusText(FSNamesystem fsn) {
    String statusText = "";
    try {
      UpgradeStatusReport status = fsn
          .distributedUpgradeProgress(UpgradeAction.GET_STATUS);
      statusText = (status == null ? "There are no upgrades in progress."
          : status.getStatusText(false));
    } catch (IOException e) {
      statusText = "Upgrade status unknown.";
    }
    return statusText;
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.common.UpgradeStatusReport

  }

  public String getUpgradeStatusText() {
    String statusText = "";
    try {
      UpgradeStatusReport status =
        fsn.distributedUpgradeProgress(UpgradeAction.GET_STATUS);
      statusText = (status == null ?
          "There are no upgrades in progress." :
            status.getStatusText(false));
    } catch(IOException e) {
      statusText = "Upgrade status unknown.";
    }
    return statusText;
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.common.UpgradeStatusReport

  }

  public String getUpgradeStatusText() {
    String statusText = "";
    try {
      UpgradeStatusReport status =
        fsn.distributedUpgradeProgress(UpgradeAction.GET_STATUS);
      statusText = (status == null ?
          "There are no upgrades in progress." :
            status.getStatusText(false));
    } catch(IOException e) {
      statusText = "Upgrade status unknown.";
    }
    return statusText;
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.common.UpgradeStatusReport

  }

  static String getUpgradeStatusText(FSNamesystem fsn) {
    String statusText = "";
    try {
      UpgradeStatusReport status = fsn
          .distributedUpgradeProgress(UpgradeAction.GET_STATUS);
      statusText = (status == null ? "There are no upgrades in progress."
          : status.getStatusText(false));
    } catch (IOException e) {
      statusText = "Upgrade status unknown.";
    }
    return statusText;
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.common.UpgradeStatusReport

    if(currentUpgrades == null) { // no upgrades are in progress
      FSImage fsimage = namesystem.getFSImage();
      isFinalized = fsimage.isUpgradeFinalized();
      if(isFinalized) // upgrade is finalized
        return null// nothing to report
      return new UpgradeStatusReport(fsimage.getStorage().getLayoutVersion(),
                                     (short)101, isFinalized);
    }
    UpgradeObjectNamenode curUO = (UpgradeObjectNamenode)currentUpgrades.first();
    boolean details = false;
    switch(action) {
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.common.UpgradeStatusReport

  }

  public String getUpgradeStatusText() {
    String statusText = "";
    try {
      UpgradeStatusReport status =
        fsn.distributedUpgradeProgress(UpgradeAction.GET_STATUS);
      statusText = (status == null ?
          "There are no upgrades in progress." :
            status.getStatusText(false));
    } catch(IOException e) {
      statusText = "Upgrade status unknown.";
    }
    return statusText;
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.common.UpgradeStatusReport

    if(currentUpgrades == null) { // no upgrades are in progress
      FSImage fsimage = FSNamesystem.getFSNamesystem().getFSImage();
      isFinalized = fsimage.isUpgradeFinalized();
      if(isFinalized) // upgrade is finalized
        return null// nothing to report
      return new UpgradeStatusReport(fsimage.getLayoutVersion(),
                                     (short)101, isFinalized);
    }
    UpgradeObjectNamenode curUO = (UpgradeObjectNamenode)currentUpgrades.first();
    boolean details = false;
    switch(action) {
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.common.UpgradeStatusReport

  }

  public String getUpgradeStatusText() {
    String statusText = "";
    try {
      UpgradeStatusReport status =
        fsn.distributedUpgradeProgress(UpgradeAction.GET_STATUS);
      statusText = (status == null ?
          "There are no upgrades in progress." :
            status.getStatusText(false));
    } catch(IOException e) {
      statusText = "Upgrade status unknown.";
    }
    return statusText;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.