Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.6.0
-
None
-
None
-
None
Description
The issue came to light when trying to work with PIG, however, I've had to either repair the DOS commands for hadoop-config.cmd or perform some work-arounds.
#. The default install location for both JDK and JRE are in "Program Files" That space causes problems with the %JAVA% variable
#. Adding quotes around the CLASSPATH and JAVA variables fix a great number of problems, but breaks the platform detection
Due to my fix in the script breaking the platform detection, I can't recommend it outright. My work-around for the platform detection was to run it from the command line directly, and then embed the result in the JAVA_PLATFORM variable with those results. I.e. it will only work on my machine.
This is an old problem that several projects had to fix when Java went to 1.3, not sure why it's back again.
Attachments
Issue Links
- duplicates
-
HADOOP-9600 In Windows: Hadoop fails to run when JAVA_HOME has spaces in it
- Open