tillrohrmann 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_r315075331
##########
File path:
flink-yarn-tests/src/test/java/org/apache/flink/yarn/YarnTestBase.java
##########
@@ -648,6 +699,23 @@ private static void start(YarnConfiguration conf, String
principal, String keyta
File targetTestClassesFolder = new
File("target/test-classes");
writeYarnSiteConfigXML(conf, targetTestClassesFolder);
+
+ LOG.info("Starting up MiniDFSCluster");
+ if (miniDFSCluster == null) {
+
+ Configuration hdfsConfiguration = new
Configuration();
+
hdfsConfiguration.set(MiniDFSCluster.HDFS_MINIDFS_BASEDIR,
tmpHDFS.getRoot().getAbsolutePath());
+ if (principal != null && keytab != null) {
+
populateHDFSSecureConfigurations(hdfsConfiguration, principal, keytab);
+ }
+ miniDFSCluster = new
MiniDFSCluster.Builder(hdfsConfiguration).numDataNodes(3).build();
+ miniDFSCluster.waitClusterUp();
+
+ hdfsConfiguration =
miniDFSCluster.getConfiguration(0);
+ writeHDFSCoreSiteConfigXML(hdfsConfiguration,
targetTestClassesFolder);
+
YARN_CONFIGURATION.addResource(hdfsConfiguration);
+ }
Review comment:
Can this be factored out instead of extending an already lengthy method?
----------------------------------------------------------------
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