flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [flink] zjffdu commented on a change in pull request #8144: [FLINK-12159]. Enable YarnMiniCluster integration test under non-secure mode
Date Thu, 02 May 2019 13:16:12 GMT
zjffdu commented on a change in pull request #8144: [FLINK-12159]. Enable YarnMiniCluster integration
test under non-secure mode
URL: https://github.com/apache/flink/pull/8144#discussion_r280412425
 
 

 ##########
 File path: flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java
 ##########
 @@ -869,41 +859,40 @@ public ApplicationReport startAppMaster(
 		FsPermission permission = new FsPermission(FsAction.ALL, FsAction.NONE, FsAction.NONE);
 		fs.setPermission(yarnFilesDir, permission); // set permission for path.
 
+		Path remoteYarnSiteXmlPath = null;
+		File f = new File(System.getenv("YARN_CONF_DIR"), Utils.YARN_SITE_FILE_NAME);
+		LOG.info("Adding Yarn configuration {} to the AM container local resource bucket", f.getAbsolutePath());
+		Path yarnSitePath = new Path(f.getAbsolutePath());
+		remoteYarnSiteXmlPath = setupSingleLocalResource(
+			Utils.YARN_SITE_FILE_NAME,
+			fs,
+			appId,
+			yarnSitePath,
+			localResources,
+			homeDir,
+			"");
 
 Review comment:
   @tillrohrmann Unfortunately, not all yarn related test (e.g. YARNSessionFIFOITCase#testDetachedMode)
use `YarnTestBase#createYarnClusterDescriptor`, so I can not only add yarn-site.xml explicitly
in YarnTestBase

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message