[
https://issues.apache.org/jira/browse/HADOOP-11458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268572#comment-14268572
]
Chris Nauroth commented on HADOOP-11458:
----------------------------------------
Hello [~bloritsch]. Thank you for the bug report. This is also covered in
HADOOP-9600, so I'm resolving this one as a duplicate.
> Dos Scripts fail when spaces are in Java Path
> ---------------------------------------------
>
> Key: HADOOP-11458
> URL: https://issues.apache.org/jira/browse/HADOOP-11458
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.6.0
> Reporter: Berin Loritsch
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)