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 "Andrew Wang (JIRA)" <ji...@apache.org> on 2015/04/29 00:46:06 UTC
[jira] [Commented] (HADOOP-11885) hadoop-dist
dist-layout-stitching.sh does not work with dash
[ https://issues.apache.org/jira/browse/HADOOP-11885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14518279#comment-14518279 ]
Andrew Wang commented on HADOOP-11885:
--------------------------------------
I see this line in the pom.xml:
{noformat}
<exec executable="sh" dir="${project.build.directory}" failonerror="true">
<arg line="./dist-layout-stitching.sh"/>
</exec>
{noformat}
sh is dash by default on ubuntu. I tried invoking it directly with dash, got the above errors. When I tried it with bash, it worked.
Fix might be as easy as changing "sh" to instead be "bash".
> hadoop-dist dist-layout-stitching.sh does not work with dash
> ------------------------------------------------------------
>
> Key: HADOOP-11885
> URL: https://issues.apache.org/jira/browse/HADOOP-11885
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 3.0.0
> Reporter: Andrew Wang
>
> Saw this while building the EC branch, pretty sure it'll repro on trunk though too.
> {noformat}
> [exec] ./dist-layout-stitching.sh: 53: [: bin: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: etc: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: lib: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: libexec: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: sbin: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: share: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: share: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: bin: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: etc: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: include: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: lib: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: libexec: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: sbin: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: share: unexpected operator
> [exec] $ copy /home/andrew/dev/hadoop/hdfs-7285/hadoop-common-project/hadoop-nfs/target/hadoop-nfs-3.0.0-SNAPSHOT .
> [exec] $ copy /home/andrew/dev/hadoop/hdfs-7285/hadoop-hdfs-project/hadoop-hdfs/target/hadoop-hdfs-3.0.0-SNAPSHOT .
> [exec] $ copy /home/andrew/dev/hadoop/hdfs-7285/hadoop-hdfs-project/hadoop-hdfs-nfs/target/hadoop-hdfs-nfs-3.0.0-SNAPSHOT .
> [exec] $ copy /home/andrew/dev/hadoop/hdfs-7285/hadoop-yarn-project/target/hadoop-yarn-project-3.0.0-SNAPSHOT .
> [exec] ./dist-layout-stitching.sh: 53: [: share: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: bin: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: etc: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: libexec: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: sbin: unexpected operator
> [exec] $ copy /home/andrew/dev/hadoop/hdfs-7285/hadoop-mapreduce-project/target/hadoop-mapreduce-3.0.0-SNAPSHOT .
> [exec] $ copy /home/andrew/dev/hadoop/hdfs-7285/hadoop-tools/hadoop-tools-dist/target/hadoop-tools-dist-3.0.0-SNAPSHOT .
> [exec] ./dist-layout-stitching.sh: 53: [: share: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: bin: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: etc: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: libexec: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: sbin: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: share: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: include: unexpected operator
> [exec] ./dist-layout-stitching.sh: 53: [: share: unexpected operator
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)