hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mostafa Elhemali (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9600) In Windows: Hadoop fails to run when JAVA_HOME has spaces in it
Date Tue, 28 May 2013 22:36:20 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-9600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13668749#comment-13668749

Mostafa Elhemali commented on HADOOP-9600:

Thanks [~chuanliu]. I needed this change because I couldn't find a way to get quoting to work
in the "for" syntax when one of the arguments to the command is quoted as well. Here's a simple
repro of that problem:
md "c:\a b"
echo @echo Hi > "c:\a b\a.cmd"
echo for /f "delims=" %%A in ('"c:\a b\a.cmd" "X"') do set ABC=%%A > "c:\a b\x.cmd"
"c:\a b\x.cmd"
This will fail with {quote}'c:\a' is not recognized as an internal or external command, operable
program or batch file. {quote}. Since the purpose of this for statement is to assign the output
to the JAVA_PLATFORM variable, I did this in the alternate way instead.
> In Windows: Hadoop fails to run when JAVA_HOME has spaces in it
> ---------------------------------------------------------------
>                 Key: HADOOP-9600
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9600
>             Project: Hadoop Common
>          Issue Type: Bug
>         Environment: Windows
>            Reporter: Mostafa Elhemali
>            Assignee: Mostafa Elhemali
>         Attachments: HADOOP-9600.2.patch, HADOOP-9600.3.patch, HADOOP-9600.patch
> hadoop-config.cmd misbehaves when JAVA_HOME has spaces in it (e.g. if Java is in c:\Program

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message