Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
The commands that source hadoop-config.sh currently bail with an error if JAVA_HOME is not set. Let's detect JAVA_HOME (from a list of locations on various OS types) if JAVA_HOME is not already set by hadoop-env.sh or the environment. This way users don't have to manually configure it.
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-8717 JAVA_HOME detected in hadoop-config.sh under OS X does not work
- Open
- is duplicated by
-
HADOOP-7205 automatically determine JAVA_HOME on OS X
- Closed
- is related to
-
HADOOP-7483 Multiple Java installed confuses Hadoop Debian package installer
- Resolved
-
BIGTOP-25 Standardize JAVA_HOME detection
- Closed
-
HADOOP-6604 Improve HADOOP_HOME detection and handling in hadoop-config
- Resolved
-
HADOOP-8797 automatically detect JAVA_HOME on Linux, report native lib path similar to class path
- Resolved
- relates to
-
HADOOP-6606 Change the default HADOOP_PID_DIR to $HADOOP_HOME/pids
- Resolved