tillrohrmann commented on issue #8144: [FLINK-12159]. Enable YarnMiniCluster 
integration test under non-secure mode
URL: https://github.com/apache/flink/pull/8144#issuecomment-486129451
 
 
   Ok, what about the following approach:
   
   When we start the `YarnMiniCluster` we extract the `YarnConfiguration` via 
`YarnMiniCluster#getConfiguration` and write it as `yarn-site.xml` to 
`target/test-classes` or we do it like 
[here](https://github.com/uzh/signal-collect-yarn/blob/master/src/main/scala/com/signalcollect/deployment/yarn/MiniCluster.scala)
 where on has a dummy `yarn-site.xml` under resources which gets populated. 
   
   The important bit is that this should get cleaned up at the end of the test. 
For this, it would be super handy if we had a `YarnResource` which extends 
`ExternalResource` where we have the `before` and `after` methods. We could 
think about adding a new component and bit by bit deprecating the 
`YarnTestBase`.
   
   Next, we change the `YarnTestBase#createYarnClusterDescriptor` to add the 
`yarn-site.xml` file as a file to be shipped to the cluster. Then every test 
which deploys a Flink application should use this method to create the 
`YarnClusterDescriptor`.

----------------------------------------------------------------
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

Reply via email to