wangyang0918 commented on a change in pull request #8303: [FLINK-12343]
[flink-yarn] add file replication config for yarn configuration
URL: https://github.com/apache/flink/pull/8303#discussion_r300917866
##########
File path: flink-yarn-tests/src/test/java/org/apache/flink/yarn/YARNITCase.java
##########
@@ -113,6 +118,13 @@ public void testPerJobMode() throws Exception {
assertThat(jobResult,
is(notNullValue()));
assertThat(jobResult.getSerializedThrowable().isPresent(), is(false));
+
+ final FileSystem fs =
FileSystem.get(getYarnConfiguration());
+ String suffix = ".flink/" +
applicationId.toString() + "/" + flinkUberjar.getName();
+
+ Path uberJarHDFSPath = new
Path(fs.getHomeDirectory(), suffix);
+ FileStatus fsStatus =
fs.getFileStatus(uberJarHDFSPath);
+ Assert.assertEquals(5,
fsStatus.getReplication());
Review comment:
Hi @HuangZhenQiu,
I think you made some changes of `Utils.createTaskExecutorContext()`. The
replication of taskmanager-conf is set to `dfs.replication` and it need to be
checked in the YarnITCase.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services