[ 
https://issues.apache.org/jira/browse/AVRO-912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thiruvalluvan M. G. updated AVRO-912:
-------------------------------------

    Attachment: AVRO-912.patch

The attached patch addresses problems 1 and 2 by:
1. Using {{File}} instead of URL for passing executable filename.
2. Uses a {{List<String>}} instead of {{String}} to pass command arguments. 
While serializing the commands arguments into {{JobConf}}, it uses {{\n}} as 
delimiter.

The patch does not address the problem 3. Java 6's {{ProcessBuilder}} does not 
have a mechanism to redirect output or error. ({{ProcessBuilder}} in Java 7 has 
a platform independent solution, though). But the current thing using bash 
works if the windows machine has {{cygwin}}.
                
> Mapreduce tether test fails on Windows
> --------------------------------------
>
>                 Key: AVRO-912
>                 URL: https://issues.apache.org/jira/browse/AVRO-912
>             Project: Avro
>          Issue Type: Bug
>            Reporter: Thiruvalluvan M. G.
>            Assignee: Thiruvalluvan M. G.
>         Attachments: AVRO-912.patch
>
>
> The problems are:
> 1. The executable filename is passed around as a URL. Windows filenames are 
> valid URLs.
> 2. Typical windows user's home directory is {{c:\Documents and 
> Settings\username}}. Maven puts the downloaded jar files under {{$HOME/.m2}}. 
> So the classpath has several directories with space in their names. Splitting 
> command line arguments using space generates invalid classpath.
> 3. Hadoop's {{TaskLog.captureOutAndError()}} generates command line for unix 
> systems using bash. 

--
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

        

Reply via email to