You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2012/11/08 00:50:14 UTC

[jira] [Created] (YARN-207) YARN distribution build fails on Windows

Chris Nauroth created YARN-207:
----------------------------------

             Summary: YARN distribution build fails on Windows
                 Key: YARN-207
                 URL: https://issues.apache.org/jira/browse/YARN-207
             Project: Hadoop YARN
          Issue Type: Bug
          Components: api
    Affects Versions: trunk-win
            Reporter: Chris Nauroth
            Assignee: Chris Nauroth


Distribution build relies on sh scripts that do not work on Windows.

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

[jira] [Commented] (YARN-207) YARN distribution build fails on Windows

Posted by "Raja Aluri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/YARN-207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495523#comment-13495523 ] 

Raja Aluri commented on YARN-207:
---------------------------------

+1 LGTM.
                
> YARN distribution build fails on Windows
> ----------------------------------------
>
>                 Key: YARN-207
>                 URL: https://issues.apache.org/jira/browse/YARN-207
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: api
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: YARN-207-branch-trunk-win.patch
>
>
> Distribution build relies on sh scripts that do not work on Windows.

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

[jira] [Resolved] (YARN-207) YARN distribution build fails on Windows

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suresh Srinivas resolved YARN-207.
----------------------------------

       Resolution: Fixed
    Fix Version/s: trunk-win

+1. Committed the patch to branch-trunk-win. Thank you Chris.
                
> YARN distribution build fails on Windows
> ----------------------------------------
>
>                 Key: YARN-207
>                 URL: https://issues.apache.org/jira/browse/YARN-207
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: api
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>             Fix For: trunk-win
>
>         Attachments: YARN-207-branch-trunk-win.patch
>
>
> Distribution build relies on sh scripts that do not work on Windows.

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

[jira] [Updated] (YARN-207) YARN distribution build fails on Windows

Posted by "Chris Nauroth (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/YARN-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Nauroth updated YARN-207:
-------------------------------

    Attachment: YARN-207-branch-trunk-win.patch

The attached patch ports the sh scripting in the distribution build to Python.  It wasn't possible to use only Maven plugins (like maven-antrun-plugin with a <tar> task), because they mishandled permissions and symlinks in the built tarballs.

I tested all of the following build variations:

Windows: mvn -Pnative-win -Pdist -Dtar -DskipTests clean package
Mac: mvn -Pdist -Dtar -DskipTests clean package
Ubuntu: mvn -Pnative -Pdist -Dtar -DskipTests clean package
Ubuntu: mvn -Pnative -Pdist -Dtar -Drequire.snappy -Dbundle.snappy -Dsnappy.lib=/usr/local/lib -DskipTests clean package

This works on Windows.  Additionally, on Mac and Ubuntu, I compared the built tarballs from before and after my changes.  I confirmed that the resulting tarballs have exactly the same contents, including permissions and symlinks.

                
> YARN distribution build fails on Windows
> ----------------------------------------
>
>                 Key: YARN-207
>                 URL: https://issues.apache.org/jira/browse/YARN-207
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: api
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: YARN-207-branch-trunk-win.patch
>
>
> Distribution build relies on sh scripts that do not work on Windows.

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