You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Harsh J (JIRA)" <ji...@apache.org> on 2012/06/28 06:54:43 UTC

[jira] [Commented] (HADOOP-8536) Problem with -Dproperty=value option on windows hadoop

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

Harsh J commented on HADOOP-8536:
---------------------------------

Isn't this a PowerShell issue, that it does not auto-quote/escape the parameters? How do we fix it on our side?
                
> Problem with -Dproperty=value option on windows hadoop
> ------------------------------------------------------
>
>                 Key: HADOOP-8536
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8536
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Trupti Dhavle
>
> While running the java examples the -Dproperty=value option to the hadoop command is not getting read correctly.
> TERASORT COMMAND: 
> C:\hdp\branch-1-win\bin\hadoop   jar C:\hdp\branch-1-win\build\hadoop-examples-1.1.0-SNAPSHOT.jar terasort  -Dmapreduce.reduce.input.limit=-1 teraInputDir teraOutputDir  
> Error-
> 12/06/27 10:28:26 INFO terasort.TeraSort: starting
> org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://localhost:8020/user/Administrator/-1
> It tries to look into directory named -1 instead of teraInputDir
> On setting "echo on" in the cmd scripts, I noticed that the "=" sign disappears in the command passed to JVM-
> terasort -Dmapreduce.reduce.input.limit -1 teraInputDir teraOutputDir 
> In order to make it read properly quotes around “-Dproperty=value” are required to be used.
> This JIRA is to track fixing this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira