zhangbutao commented on PR #5884: URL: https://github.com/apache/hive/pull/5884#issuecomment-3015093205
@Aggarwal-Raghav I have just figured out the reason why the `HADOOP_OPTS` in my **hive-env.sh** file is ineffective. Because in order for `Hadoop 3.4.1` to run on JDK 17, I configured the `HADOOP_OPTS` parameter in the **hadoop-env.sh** file: `export HADOOP_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.net.util=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED"` So when Hive starts, the value of the `HADOOP_OPTS` parameter in **hive-env.sh** is always overwritten by the parameter value in **hadoop-env.sh**. Therefore, in order to prevent the parameters in **hive-env.sh** from being overridden by those in **hadoop-env.sh**, we can specify a clean **hadoop-env.sh** file for hive (a separate hadoop client for hive) Back to this current PR, regarding whether we should change the `HADOOP_OPTS `in the **hive-env.sh template** to `HADOOP_CLIENT_OPTS`. My answer is yes. See HIVE-19886 https://github.com/apache/hive/blob/925df927248c1be11b84df3e8a0c3e43955e133e/service/src/java/org/apache/hive/service/server/HiveServer2.java#L1469-L1480 But I also want to hear the opinions of the other folks. :) Thanks. -- 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