[ 
https://issues.apache.org/jira/browse/HADOOP-11885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Wang updated HADOOP-11885:
---------------------------------
    Attachment: hadoop-11885.001.patch

Thanks for commenting Allen. This attached patch changes "sh" to "bash" where 
my grep found it.

I'm also somewhat puzzled why dash doesn't end up with a non-zero error code 
when it's spitting all these parse errors. I played with -e and the run() 
wrapper to no avail. This is pretty scary to me since it means we are silently 
ignoring errors. If you have a sec, would appreciate a quick look from a more 
experienced shell scripter.

{noformat}
-> % mvn -f hadoop-dist/pom.xml package -Pdist
...or...
-> % dash target/dist-layout-stitching.sh
{noformat}

Sounds like we really need that dev-support refactor, or maven assembly.

> 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
>         Attachments: hadoop-11885.001.patch
>
>
> 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)

Reply via email to