if (launchContext.getServiceData()!=null && !launchContext.getServiceData().isEmpty()) { for (Entry<String, ByteBuffer> meta : launchContext.getServiceData() .entrySet()) { if (null == serviceData.get(meta.getKey())) {
.getServiceData().entrySet()) { myServiceData.put(entry.getKey(), entry.getValue().duplicate());
.getServiceData().entrySet()) { myServiceData.put(entry.getKey(), entry.getValue().duplicate());
.getServiceData().entrySet()) { myServiceData.put(entry.getKey(), entry.getValue().duplicate());
for (Entry<String, ByteBuffer> entry : commonContainerSpec.getServiceData() .entrySet()) { myServiceData.put(entry.getKey(), entry.getValue().duplicate());
Map<String,ByteBuffer> csd = ctxt.getServiceData(); if (csd != null) {
Map<String,ByteBuffer> csd = ctxt.getServiceData(); if (csd != null) {
Map<String,ByteBuffer> csd = ctxt.getServiceData(); if (csd != null) {
credentials); Map<String, ByteBuffer> serviceDataMap = launchCtx.getServiceData(); Assert.assertNotNull("TestShuffleHandler1 is missing", serviceDataMap.get(TestShuffleHandler1.MAPREDUCE_TEST_SHUFFLE_SERVICEID)); Assert.assertNotNull("TestShuffleHandler2 is missing", serviceDataMap.get(TestShuffleHandler2.MAPREDUCE_TEST_SHUFFLE_SERVICEID));
if (launchContext.getServiceData()!=null && !launchContext.getServiceData().isEmpty()) { for (Map.Entry<String, ByteBuffer> meta : launchContext.getServiceData() .entrySet()) { if (null == serviceData.get(meta.getKey())) {
if (launchContext.getServiceData()!=null && !launchContext.getServiceData().isEmpty()) { for (Map.Entry<String, ByteBuffer> meta : launchContext.getServiceData() .entrySet()) { if (null == serviceData.get(meta.getKey())) {
if (launchContext.getServiceData()!=null && !launchContext.getServiceData().isEmpty()) { for (Map.Entry<String, ByteBuffer> meta : launchContext.getServiceData() .entrySet()) { if (null == serviceData.get(meta.getKey())) {
Map<String,ByteBuffer> csd = ctxt.getServiceData(); if (csd != null) {
private void verifyRMAppFieldsForNonFinalTransitions(RMApp application) throws IOException { assertEquals(Arrays.asList("/bin/sleep 5"), application.getApplicationSubmissionContext(). getAMContainerSpec().getCommands()); assertEquals(getLocalResources(), application.getApplicationSubmissionContext(). getAMContainerSpec().getLocalResources()); if(UserGroupInformation.isSecurityEnabled()) { assertEquals(getTokens(), application.getApplicationSubmissionContext(). getAMContainerSpec().getTokens()); assertEquals(getTokensConf(), application.getApplicationSubmissionContext(). getAMContainerSpec().getTokensConf()); } assertEquals(getEnvironment(), application.getApplicationSubmissionContext(). getAMContainerSpec().getEnvironment()); assertEquals(getContainerRetryContext(), application.getApplicationSubmissionContext(). getAMContainerSpec().getContainerRetryContext()); assertEquals(getServiceData(), application.getApplicationSubmissionContext(). getAMContainerSpec().getServiceData()); assertEquals(getLogAggregationContext(), application.getApplicationSubmissionContext(). getLogAggregationContext()); }