hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajith S (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-14792) Package on windows fail
Date Mon, 21 Aug 2017 07:08:00 GMT

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

Ajith S commented on HADOOP-14792:
----------------------------------

as cygwin do not have dos2unix command installed by default, we can replace carriage return
by awk or tr command as below


{noformat}
 /cygdrive/d/hadoop/code/hadoop
$ D:/hadoop/code/hadoop/hadoop-project/../dev-support/bin/dist-copynativelibs --version=3.0.0-beta1-SNAPSHOT
--builddir=D:\hadoop\code\hadoop\hadoop-project-dist\target --artifact
id=hadoop-project-dist --isalbundle=false --isallib= --openssllib= --opensslbinbundle=false
--openssllibbundle=false --snappybinbundle=false --snappylib= --snappylibbundle=false -
-zstdbinbundle=false --zstdlib= --zstdlibbundle=false
D:/hadoop/code/hadoop/hadoop-project/../dev-support/bin/dist-copynativelibs: line 16: $'\r':
command not found
: invalid option name/hadoop-project/../dev-support/bin/dist-copynativelibs: line 17: set:
pipefail
D:/hadoop/code/hadoop/hadoop-project/../dev-support/bin/dist-copynativelibs: line 18: $'\r':
command not found
D:/hadoop/code/hadoop/hadoop-project/../dev-support/bin/dist-copynativelibs: line 21: syntax
error near unexpected token `$'\r''
':/hadoop/code/hadoop/hadoop-project/../dev-support/bin/dist-copynativelibs: line 21: `function
bundle_native_lib()

/cygdrive/d/hadoop/code/hadoop
$ tr -d '\15\32' < D:/hadoop/code/hadoop/hadoop-project/../dev-support/bin/dist-copynativelibs
> D:/hadoop/code/hadoop/hadoop-project/../dev-support/bin/dist-copynativelibs

 /cygdrive/d/hadoop/code/hadoop
$ D:/hadoop/code/hadoop/hadoop-project/../dev-support/bin/dist-copynativelibs --version=3.0.0-beta1-SNAPSHOT
--builddir=D:\hadoop\code\hadoop\hadoop-project-dist\target --artifact
id=hadoop-project-dist --isalbundle=false --isallib= --openssllib= --opensslbinbundle=false
--openssllibbundle=false --snappybinbundle=false --snappylib= --snappylibbundle=false -
-zstdbinbundle=false --zstdlib= --zstdlibbundle=false

 /cygdrive/d/hadoop/code/hadoop{noformat}


> Package on windows fail
> -----------------------
>
>                 Key: HADOOP-14792
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14792
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ajith S
>            Assignee: Ajith S
>         Attachments: packagefail.png
>
>
> {{mvn package -Pdist -Pnative-win -DskipTests -Dtar -Dmaven.javadoc.skip=true}}
> command fails on windows 
> this is because 
> dev-support/bin/dist-copynativelibs need dos2unix conversion
> to avoid failure, we can add the conversion before bash execute



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message