Package org.apache.hadoop.yarn.client.api

Examples of org.apache.hadoop.yarn.client.api.YarnClient.stop()


      showClusterMetrics(yarnClient);
    }
    if(!cmd.hasOption(CONTAINER.getOpt())) {
      LOG.fatal("Missing required argument "+CONTAINER.getOpt());
      printUsage();
      yarnClient.stop();
      System.exit(1);
    }
   
    // TM Count
    final int taskManagerCount = Integer.valueOf(cmd.getOptionValue(CONTAINER.getOpt()));
View Full Code Here


    GetNewApplicationResponse appResponse = app.getNewApplicationResponse();
    Resource maxRes = appResponse.getMaximumResourceCapability();
    if(tmMemory > maxRes.getMemory() || tmCores > maxRes.getVirtualCores()) {
      LOG.fatal("The cluster does not have the requested resources for the TaskManagers available!\n"
          + "Maximum Memory: "+maxRes.getMemory() +", Maximum Cores: "+tmCores);
      yarnClient.stop();
      System.exit(1);
    }
    if(jmMemory > maxRes.getMemory() ) {
      LOG.fatal("The cluster does not have the requested resources for the JobManager available!\n"
          + "Maximum Memory: "+maxRes.getMemory());
View Full Code Here

      System.exit(1);
    }
    if(jmMemory > maxRes.getMemory() ) {
      LOG.fatal("The cluster does not have the requested resources for the JobManager available!\n"
          + "Maximum Memory: "+maxRes.getMemory());
      yarnClient.stop();
      System.exit(1);
    }
   
    // respect custom JVM options in the YAML file
    final String javaOpts = GlobalConfiguration.getString(ConfigConstants.STRATOSPHERE_JVM_OPTIONS, "");
View Full Code Here

        addrFile.delete();
      } catch (Exception e) {
        LOG.warn("Exception while deleting the jobmanager address file", e);
      }
      LOG.info("YARN Client is shutting down");
      yarnClient.stop();
    }
    });
   
    LOG.info("Submitting application master " + appId);
    yarnClient.submitApplication(appContext);
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.