Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11885

hadoop-dist dist-layout-stitching.sh does not work with dash

    Details

    • Target Version/s:

      Description

      Saw this while building the EC branch, pretty sure it'll repro on trunk though too.

           [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
      

        Attachments

        1. hadoop-11885.001.patch
          9 kB
          Andrew Wang
        2. hadoop-11885.002.patch
          10 kB
          Andrew Wang

          Activity

            People

            • Assignee:
              andrew.wang Andrew Wang
              Reporter:
              andrew.wang Andrew Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: