Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E972E10528 for ; Thu, 8 Jan 2015 00:25:36 +0000 (UTC) Received: (qmail 86919 invoked by uid 500); 8 Jan 2015 00:25:36 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 86767 invoked by uid 500); 8 Jan 2015 00:25:36 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 86554 invoked by uid 99); 8 Jan 2015 00:25:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jan 2015 00:25:36 +0000 Date: Thu, 8 Jan 2015 00:25:36 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HADOOP-11458) Dos Scripts fail when spaces are in Java Path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-11458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Nauroth resolved HADOOP-11458. ------------------------------------ Resolution: 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)