You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/03/02 06:37:51 UTC

[GitHub] [flink] wangyang0918 commented on a change in pull request #18739: [FLINK-26030][yarn] Set FLINK_LIB_DIR to 'lib' under working dir in YARN containers

wangyang0918 commented on a change in pull request #18739:
URL: https://github.com/apache/flink/pull/18739#discussion_r817387290



##########
File path: flink-yarn/src/test/java/org/apache/flink/yarn/YarnClusterDescriptorTest.java
##########
@@ -854,6 +855,25 @@ public void testGenerateApplicationMasterEnv() throws IOException {
         assertEquals(flinkHomeDir.getPath(), masterEnv.get(YarnConfigKeys.ENV_CLIENT_HOME_DIR));
     }
 
+    @Test
+    public void testEnvFlinkLibDirVarNotOverriddenBySystem() throws IOException {

Review comment:
       I think what we need to test is `ENV_FLINK_LIB_DIR` is not overridden by user specified envs via `CONTAINERIZED_MASTER_ENV_PREFIX`, not overridden by system environment.
   
   ```
   flinkConfig.setString(
                   ResourceManagerOptions.CONTAINERIZED_MASTER_ENV_PREFIX
                           + ConfigConstants.ENV_FLINK_LIB_DIR,
                   "/path/of/flink-lib");
   ```




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

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org