Package org.apache.hadoop.yarn.api.records.impl.pb

Examples of org.apache.hadoop.yarn.api.records.impl.pb.ApplicationAttemptStateDataPBImpl


      case STORE_APP_ATTEMPT:
        {
          ApplicationAttemptState attemptState =
                    ((RMStateStoreAppAttemptEvent) event).getAppAttemptState();
          Exception storedException = null;
          ApplicationAttemptStateDataPBImpl attemptStateData =
                                        new ApplicationAttemptStateDataPBImpl();
          attemptStateData.setAttemptId(attemptState.getAttemptId());
          attemptStateData.setMasterContainer(attemptState.getMasterContainer());

          LOG.info("Storing info for attempt: " + attemptState.getAttemptId());
          try {
            storeApplicationAttemptState(attemptState.getAttemptId().toString(),
                                         attemptStateData);
View Full Code Here


                                ApplicationAttemptId.appAttemptIdStrPrefix)) {
          // attempt
          LOG.info("Loading application attempt from node: " + childNodeName);
          ApplicationAttemptId attemptId =
                          ConverterUtils.toApplicationAttemptId(childNodeName);
          ApplicationAttemptStateDataPBImpl attemptStateData =
              new ApplicationAttemptStateDataPBImpl(
                  ApplicationAttemptStateDataProto.parseFrom(childData));
          ApplicationAttemptState attemptState = new ApplicationAttemptState(
                          attemptId, attemptStateData.getMasterContainer());
          // assert child node name is same as application attempt id
          assert attemptId.equals(attemptState.getAttemptId());
          attempts.add(attemptState);
        } else {
          LOG.info("Unknown child node with name: " + childNodeName);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.api.records.impl.pb.ApplicationAttemptStateDataPBImpl

Copyright © 2018 www.massapicom. 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.