hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-11458) Dos Scripts fail when spaces are in Java Path
Date Sun, 04 Jan 2015 21:35:34 GMT
Berin Loritsch created HADOOP-11458:
---------------------------------------

             Summary: 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)

Mime
View raw message