hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raja Aluri (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9008) Building hadoop tarball fails on Windows
Date Fri, 09 Nov 2012 22:11:12 GMT

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

Raja Aluri commented on HADOOP-9008:

It is just for code readability sake. I will leave it to you. 
Sorry for not pointing this out earlier. 
Please consider using os.path.join() or  os.path.abspath(os.path.join()) instead of normpath
for cross platform sake. 

Also for building directory structure like the one below without platform specific '/'s

 arc_name = base_name + "/lib/native"
can be
os.path.join(base_name, 'lib' , 'native')
>>> os.path.abspath(".")
>>> os.path.abspath("../")
>>> os.path.normpath("../../")
>>> os.path.normpath("..")
>>> os.path.normpath("..")

> Building hadoop tarball fails on Windows
> ----------------------------------------
>                 Key: HADOOP-9008
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9008
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: trunk-win
>            Reporter: Ivan Mitic
>            Assignee: Chris Nauroth
>         Attachments: HADOOP-9008-branch-trunk-win.patch, HADOOP-9008-branch-trunk-win.patch,
> Trying to build Hadoop trunk tarball via {{mvn package -Pdist -DskipTests -Dtar}} fails
on Windows.
> Build system generates sh scripts that execute build tasks what does not work on Windows
without Cygwin. It might make sense to apply the same pattern as in HADOOP-8924, and use python
instead of sh.

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