-
Notifications
You must be signed in to change notification settings - Fork 441
TEZ-4299: Default java opts cause jdk11 to fail #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@jteagles: could you please take a look? the patch solves the problem with automatic java version detection btw: I used earlier experience from HIVE-23938 |
|
💔 -1 overall
This message was automatically generated. |
| public static final String TEZ_AM_LAUNCH_CMD_OPTS = TEZ_AM_PREFIX + "launch.cmd-opts"; | ||
| public static final String TEZ_AM_LAUNCH_CMD_OPTS_DEFAULT = | ||
| "-XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps -XX:+UseNUMA -XX:+UseParallelGC"; | ||
| public static final String TEZ_AM_LAUNCH_CMD_OPTS_JDK9_DEFAULT = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we create TEZ_AM_LAUNCH_CMD_OPTS_JDK8_DEFAULT with the origin value of TEZ_AM_LAUNCH_CMD_OPTS_DEFAULT.
Then we could statically assign TEZ_AM_LAUNCH_CMD_OPTS_DEFAULT to correct value of JDK8 or JDK9+. This would remove the runtime detection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, I'm doing it in the next commit
| } | ||
|
|
||
| private static int getJavaVersion() { | ||
| String javaVersionString = System.getProperty("java.version"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I originally detected the presence of java.lang.runtime.Version class to avoid parsing the version string. Knowing the actual version could be more useful in the future though so let's try to keep this for now.
|
💔 -1 overall
This message was automatically generated. |
|
@jteagles: are you fine with merging this? |
jteagles
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1. Let's put this in master and branch-0.9
…reviewed by Jonathan Turner Eagles)
No description provided.