private void yarnReport() { RegisterApplicationMasterResponse response = yarn.getRegistrationResponse(); LOG.info("YARN queue: " + response.getQueue()); Resource resource = response.getMaximumResourceCapability(); LOG.info("YARN max resource: " + resource.getMemory() + " MB, " + resource.getVirtualCores() + " cores"); EnumSet<SchedulerResourceTypes> types = response .getSchedulerResourceTypes(); StringBuilder buf = new StringBuilder(); String sep = ""; for (SchedulerResourceTypes type : types) { buf.append(sep); buf.append(type.toString()); sep = ", "; } LOG.info("YARN scheduler resource types: " + buf.toString()); }
this.uamPool.reAttachUAM(subClusterId.getId(), config, this.attemptId.getApplicationId(), this.amRegistrationResponse.getQueue(), getApplicationContext().getUser(), this.homeSubClusterId.getId(), entry.getValue(), subClusterId.toString()); String queue = this.amRegistrationResponse.getQueue(); this.policyInterpreter = FederationPolicyUtils.loadAMRMPolicy(queue, this.policyInterpreter,
String queue = response.getQueue(); LOG.info("queue: " + queue); job.setQueueName(queue);
@Override public void start() { try { RegisterApplicationMasterResponse response; synchronized (this) { amRmClient.start(); response = amRmClient.registerApplicationMaster(appHostName, appHostPort, appTrackingUrl); } // upcall to app outside locks getContext().setApplicationRegistrationData( response.getMaximumResourceCapability(), response.getApplicationACLs(), response.getClientToAMTokenMasterKey(), response.getQueue()); delayedContainerManager.start(); } catch (YarnException e) { LOG.error("Yarn Exception while registering", e); throw new TezUncheckedException(e); } catch (IOException e) { LOG.error("IO Exception while registering", e); throw new TezUncheckedException(e); } }
String queue = response.getQueue(); LOG.info("queue: " + queue); job.setQueueName(queue);
String queue = response.getQueue(); LOG.info("queue: " + queue); job.setQueueName(queue);
@Override public RegisterApplicationMasterResponseInfo call() throws Exception { // Create a config loaded with federation on and subclusterId // for each UAM YarnConfiguration config = new YarnConfiguration(getConf()); FederationProxyProviderUtil.updateConfForFederation(config, subClusterId); RegisterApplicationMasterResponse uamResponse = null; Token<AMRMTokenIdentifier> token = null; try { // For appNameSuffix, use subClusterId of the home sub-cluster token = uamPool.launchUAM(subClusterId, config, attemptId.getApplicationId(), amRegistrationResponse.getQueue(), appContext.getUser(), homeSubClusterId.toString(), true, subClusterId); secondaryRelayers.put(subClusterId, uamPool.getAMRMClientRelayer(subClusterId)); uamResponse = uamPool.registerApplicationMaster(subClusterId, registerRequest); } catch (Throwable e) { LOG.error("Failed to register application master: " + subClusterId + " Application: " + attemptId, e); } return new RegisterApplicationMasterResponseInfo(uamResponse, SubClusterId.newInstance(subClusterId), token); } });
amRegistrationResponse.getQueue(), getApplicationContext().getUser(), homeSubClusterId.getId(), amrmToken, subClusterId.toString());
String queue = this.amRegistrationResponse.getQueue(); if (queue == null) { LOG.warn("Received null queue for application " + appId
.newRecordInstance( RegisterApplicationMasterRequest.class)).getProto())); Assert.assertEquals("dummyQueue", regResp.getQueue()); FinishApplicationMasterResponse finishResp = new FinishApplicationMasterResponsePBImpl(