Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11458

Dos Scripts fail when spaces are in Java Path

    XMLWordPrintableJSON

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

          Activity

            People

              Unassigned Unassigned
              bloritsch Berin Loritsch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: