deniskuzZ commented on code in PR #5809: URL: https://github.com/apache/hive/pull/5809#discussion_r2086711615
########## hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/TempletonControllerJob.java: ########## @@ -121,10 +123,9 @@ public int run(String[] args) throws IOException, InterruptedException, ClassNot if (amMemoryMB != null && !amMemoryMB.isEmpty()) { conf.set(AppConfig.HADOOP_MR_AM_MEMORY_MB, amMemoryMB); } - String amJavaOpts = appConf.controllerAMChildOpts(); - if (amJavaOpts != null && !amJavaOpts.isEmpty()) { - conf.set(AppConfig.HADOOP_MR_AM_JAVA_OPTS, amJavaOpts); - } + String amJavaOpts = StringUtils.defaultString(appConf.controllerAMChildOpts()); + amJavaOpts = String.join(" ", amJavaOpts, JavaVersionUtils.getAddOpensFlagsIfNeeded()).trim(); Review Comment: Why do you need `trim()` here? -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org