Codota Logo
org.apache.hadoop.yarn.exceptions
Code IndexAdd Codota to your IDE (free)

How to use org.apache.hadoop.yarn.exceptions

Best Java code snippets using org.apache.hadoop.yarn.exceptions (Showing top 20 results out of 504)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: alibaba/jstorm

void startTimelineClient(final Configuration conf)
    throws YarnException, IOException, InterruptedException {
  try {
    appSubmitterUgi.doAs(new PrivilegedExceptionAction<Void>() {
      @Override
      public Void run() throws Exception {
        if (conf.getBoolean(YarnConfiguration.TIMELINE_SERVICE_ENABLED,
            YarnConfiguration.DEFAULT_TIMELINE_SERVICE_ENABLED)) {
          // Creating the Timeline Client
          timelineClient = TimelineClient.createTimelineClient();
          timelineClient.init(conf);
          timelineClient.start();
        } else {
          timelineClient = null;
          LOG.warn("Timeline service is not enabled");
        }
        return null;
      }
    });
  } catch (UndeclaredThrowableException e) {
    throw new YarnException(e.getCause());
  }
}
origin: Qihoo360/XLearning

@Override
protected void serviceInit(Configuration conf) throws Exception {
 Configuration config = new XLearningConfiguration(conf);
 config.setBoolean(Dispatcher.DISPATCHER_EXIT_ON_ERROR_KEY, true);
 // This is required for WebApps to use https if enabled.
 XLearningWebAppUtil.initialize(getConfig());
 try {
  doSecureLogin(conf);
 } catch (IOException ie) {
  throw new YarnRuntimeException("History Server Failed to login", ie);
 }
 jobHistoryService = new JobHistory();
 historyContext = (HistoryContext) jobHistoryService;
 stateStore = createStateStore(conf);
 this.jhsDTSecretManager = createJHSSecretManager(conf, stateStore);
 clientService = createHistoryClientService();
 aggLogDelService = new AggregatedLogDeletionService();
 addService(stateStore);
 addService(new HistoryServerSecretManagerService());
 addService(clientService);
 addService(aggLogDelService);
 super.serviceInit(config);
}
origin: org.apache.hadoop/hadoop-yarn-server-common

@Override
public FinishApplicationMasterResponse finishApplicationMaster(
  FinishApplicationMasterRequest request)
  throws YarnException, IOException {
 if (this.failover) {
  this.failover = false;
  throw new ApplicationMasterNotRegisteredException("Mock RM restarted");
 }
 return null;
}
origin: org.apache.hadoop/hadoop-yarn-server-common

@Override
public RegisterApplicationMasterResponse registerApplicationMaster(
  RegisterApplicationMasterRequest request)
  throws YarnException, IOException {
 if (this.throwAlreadyRegister) {
  this.throwAlreadyRegister = false;
  throw new InvalidApplicationMasterRequestException(
    AMRMClientUtils.APP_ALREADY_REGISTERED_MESSAGE + "appId");
 }
 return null;
}
origin: org.apache.hadoop/hadoop-mapreduce-client-common

public static TaskType
  toYarn(org.apache.hadoop.mapreduce.TaskType taskType) {
 switch (taskType) {
 case MAP:
  return TaskType.MAP;
 case REDUCE:
  return TaskType.REDUCE;
 default:
  throw new YarnRuntimeException("Unrecognized task type: " + taskType);
 }
}
origin: apache/metron

@VisibleForTesting
void startTimelineClient(final Configuration conf)
    throws YarnException, IOException, InterruptedException {
 try {
  appSubmitterUgi.doAs(new PrivilegedExceptionAction<Void>() {
   @Override
   public Void run() throws Exception {
    if (conf.getBoolean(YarnConfiguration.TIMELINE_SERVICE_ENABLED,
        YarnConfiguration.DEFAULT_TIMELINE_SERVICE_ENABLED)) {
     // Creating the Timeline Client
     timelineClient = TimelineClient.createTimelineClient();
     timelineClient.init(conf);
     timelineClient.start();
    } else {
     timelineClient = null;
     LOG.warn("Timeline service is not enabled");
    }
    return null;
   }
  });
 } catch (UndeclaredThrowableException e) {
  throw new YarnException(e.getCause());
 }
}
origin: org.apache.hadoop/hadoop-yarn-server-common

@Override
public FinishApplicationMasterResponse finishApplicationMaster(
  FinishApplicationMasterRequest request)
  throws YarnException, IOException {
 if (this.failover) {
  this.failover = false;
  throw new ApplicationMasterNotRegisteredException("Mock RM restarted");
 }
 return null;
}
origin: ch.cern.hadoop/hadoop-mapreduce-client-common

public static org.apache.hadoop.mapreduce.TaskType fromYarn(
  TaskType taskType) {
 switch (taskType) {
 case MAP:
  return org.apache.hadoop.mapreduce.TaskType.MAP;
 case REDUCE:
  return org.apache.hadoop.mapreduce.TaskType.REDUCE;
 default:
  throw new YarnRuntimeException("Unrecognized task type: " + taskType);
 }
}
origin: org.apache.hadoop/hadoop-yarn-common

/**
 * Returns an instance of {@link YarnException}
 */
public static YarnException getRemoteException(Throwable t) {
 return new YarnException(t);
}
origin: org.apache.hadoop/hadoop-yarn-server-router

@Override
public void setNextInterceptor(RESTRequestInterceptor next) {
 throw new YarnRuntimeException("setNextInterceptor is being called on "
   + "FederationInterceptorREST, which should be the last one "
   + "in the chain. Check if the interceptor pipeline configuration "
   + "is correct");
}
origin: org.apache.hadoop/hadoop-yarn-common

/**
 * Returns an instance of {@link YarnException}
 */
public static YarnException getRemoteException(String message) {
 return new YarnException(message);
}
origin: org.apache.hadoop/hadoop-yarn-server-router

@Override
public void setNextInterceptor(RESTRequestInterceptor next) {
 throw new YarnRuntimeException("setNextInterceptor is being called on "
   + "DefaultRequestInterceptorREST, which should be the last one "
   + "in the chain. Check if the interceptor pipeline configuration "
   + "is correct");
}
origin: ch.cern.hadoop/hadoop-yarn-common

/**
 * Returns an instance of {@link YarnException}
 */
public static YarnException getRemoteException(Throwable t) {
 return new YarnException(t);
}
origin: org.apache.hadoop/hadoop-yarn-server-nodemanager

@Override
public void setNextInterceptor(RequestInterceptor next) {
 throw new YarnRuntimeException(
   "setNextInterceptor is being called on FederationInterceptor. "
     + "It should always be used as the last interceptor in the chain");
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

@Override
public synchronized SignalContainerResponse signalToContainer(
  SignalContainerRequest request) throws YarnException, IOException {
 throw new YarnException("Not supported yet!");
}
origin: io.hops/hadoop-mapreduce-client-common

public static TaskType
  toYarn(org.apache.hadoop.mapreduce.TaskType taskType) {
 switch (taskType) {
 case MAP:
  return TaskType.MAP;
 case REDUCE:
  return TaskType.REDUCE;
 default:
  throw new YarnRuntimeException("Unrecognized task type: " + taskType);
 }
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

@Override
public String moveApplication(ApplicationId appId, String newQueue)
  throws YarnException {
 if (failMove) {
  throw new YarnException("Move not supported");
 }
 return newQueue;
}

origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

/**
 * This has to be initialized with at-least 1 Processor.
 * @param rootProcessor Root processor.
 */
AMSProcessingChain(ApplicationMasterServiceProcessor rootProcessor) {
 if (rootProcessor == null) {
  throw new YarnRuntimeException("No root ApplicationMasterService" +
    "Processor specified for the processing chain..");
 }
 this.head = rootProcessor;
}
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

@Override
public String moveApplication(ApplicationId appId, String newQueue)
  throws YarnException {
 if (failMove) {
  throw new YarnException("Move not supported");
 }
 return newQueue;
}

origin: org.apache.hadoop/hadoop-mapreduce-client-app

 @Override
 protected TaskSplitMetaInfo[] createSplits(JobImpl job, JobId jobId) {
  throw new YarnRuntimeException(EXCEPTIONMSG);
 }
};
org.apache.hadoop.yarn.exceptions

Most used classes

  • YarnRuntimeException
  • YarnException
  • ApplicationNotFoundException
  • ContainerNotFoundException
    This exception is thrown on ApplicationHistoryProtocol#getContainerReport(GetContainerReportRequest)
  • ApplicationAttemptNotFoundException
  • NMNotYetReadyException,
  • InvalidApplicationMasterRequestException,
  • InvalidContainerReleaseException,
  • InvalidResourceRequestException,
  • ApplicationIdNotProvidedException,
  • InvalidAuxServiceException,
  • InvalidContainerException,
  • ResourceNotFoundException,
  • InvalidResourceBlacklistRequestException,
  • SchedulerInvalidResoureRequestException,
  • ConfigurationException,
  • InvalidLabelResourceRequestException,
  • YARNFeatureNotEnabledException
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now