[
https://issues.apache.org/jira/browse/HADOOP-11885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14518284#comment-14518284
]
Andrew Wang commented on HADOOP-11885:
--------------------------------------
[~aw] I think you were the last person to touch this script, any thoughts?
> 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)