Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Not A Bug
-
1.1.0
-
None
-
None
Description
I'm running into an issue where the hadoop namenode fails to start hdfs when using openjdk 8. It appears to be because the namenode scripts rely on the bigtop-detect-javahome script in bigtop_utils, which doesn't detect JAVA_HOME correctly for openjdk 8.
I'd like to modify the script so that it first tries to figure out java home by looking in /etc/alternatives and deriving JAVA_HOME from the symlink to the java executable. This should work on both Redhat and Debian based distros, in a forwards compatible way. The script would fall back to the more manual process for distros that don't use /etc/alternatives.
Will submit a patch soon ....