Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19845 )
Change subject: PROTOTYPE IMPALA-11260: Add add-opens to JAVA_TOOL_OPTIONS on startup ...................................................................... Patch Set 3: (1 comment) http://gerrit.cloudera.org:8080/#/c/19845/3/be/src/common/init.cc File be/src/common/init.cc: http://gerrit.cloudera.org:8080/#/c/19845/3/be/src/common/init.cc@310 PS3, Line 310: "--add-opens=java.base/java.io=ALL-UNNAMED", > Statically initializing it in daemon-main.cc doesn't seem to work, so I don Java must be doing something special for JAVA_TOOL_OPTIONS. Maybe it is consulting /proc/.../environ or who knows. libhdfs has LIBHDFS_OPTS, which it reads using getenv(), and then passes into JVM startup. https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/jni_helper.c#L717 We could try setting LIBHDFS_OPTS. -- To view, visit http://gerrit.cloudera.org:8080/19845 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I47a6533b2aa94593d9348e8e3606633f06a111e8 Gerrit-Change-Number: 19845 Gerrit-PatchSet: 3 Gerrit-Owner: Michael Smith <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]> Gerrit-Comment-Date: Fri, 12 May 2023 02:54:19 +0000 Gerrit-HasComments: Yes
