Bigtop
  1. Bigtop
  2. BIGTOP-1081

deb spark packing needs to set SOURCE_DIR

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.0
    • Fix Version/s: 0.7.0
    • Component/s: general
    • Labels:
      None

      Description

      Here's what I see when I try to build it on Ubuntu 12.03 LTS:

      $ export SCALA_HOME=/opt/scala-2.10.2
      $ make spark-deb
      .....
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 15:19:45.772s
      [INFO] Finished at: Thu Sep 19 08:38:33 PDT 2013
      [INFO] Final Memory: 51M/1187M
      [INFO] ------------------------------------------------------------------------
      mkdir -p debian/tmp
      touch build-indep-stamp
      dh_testdir
      dh_testroot
      sh -x debian/install_spark.sh \
      	  --build-dir=`pwd` \
                --doc-dir=/usr/share/doc/spark \
      	  --prefix=debian/spark
      + set -e
      + getopt -n debian/install_spark.sh -o  -l prefix: -l doc-dir: -l lib-dir: -l installed-lib-dir: -l bin-dir: -l source-dir: -l examples-dir: -l build-dir: -- --build-dir=/home/src/bigtop/output/spark/spark-0.8.0 --doc-dir=/usr/share/doc/spark --prefix=debian/spark
      + OPTS= --build-dir '/home/src/bigtop/output/spark/spark-0.8.0' --doc-dir '/usr/share/doc/spark' --prefix 'debian/spark' --
      + [ 0 != 0 ]
      + eval set --  --build-dir '/home/src/bigtop/output/spark/spark-0.8.0' --doc-dir '/usr/share/doc/spark' --prefix 'debian/spark' --
      + set -- --build-dir /home/src/bigtop/output/spark/spark-0.8.0 --doc-dir /usr/share/doc/spark --prefix debian/spark --
      + true
      + BUILD_DIR=/home/src/bigtop/output/spark/spark-0.8.0
      + shift 2
      + true
      + DOC_DIR=/usr/share/doc/spark
      + shift 2
      + true
      + PREFIX=debian/spark
      + shift 2
      + true
      + shift
      + break
      + eval echo $PREFIX
      + echo debian/spark
      + [ -z debian/spark ]
      + eval echo $BUILD_DIR
      + echo /home/src/bigtop/output/spark/spark-0.8.0
      + [ -z /home/src/bigtop/output/spark/spark-0.8.0 ]
      + eval echo $SOURCE_DIR
      + echo
      + [ -z  ]
      + echo Missing param: SOURCE_DIR
      Missing param: SOURCE_DIR
      + usage
      + echo 
      usage: debian/install_spark.sh <options>
        Required not-so-options:
           --build-dir=DIR             path to dist.dir
           --source-dir=DIR            path to package shared files dir
           --prefix=PREFIX             path to install into
      
        Optional options:
           --doc-dir=DIR               path to install docs into [/usr/share/doc/spark]
           --lib-dir=DIR               path to install Spark home [/usr/lib/spark]
           --installed-lib-dir=DIR     path where lib-dir will end up on target system
           --bin-dir=DIR               path to install bins [/usr/bin]
           --examples-dir=DIR          path to install examples [doc-dir/examples]
           ... [ see source for more similar options ]
        
      
      usage: debian/install_spark.sh <options>
        Required not-so-options:
           --build-dir=DIR             path to dist.dir
           --source-dir=DIR            path to package shared files dir
           --prefix=PREFIX             path to install into
      
        Optional options:
           --doc-dir=DIR               path to install docs into [/usr/share/doc/spark]
           --lib-dir=DIR               path to install Spark home [/usr/lib/spark]
           --installed-lib-dir=DIR     path where lib-dir will end up on target system
           --bin-dir=DIR               path to install bins [/usr/bin]
           --examples-dir=DIR          path to install examples [doc-dir/examples]
           ... [ see source for more similar options ]
        
      + exit 1
      

      So it seems that the build part goes fine, but the install one somehow fails.

      1. BIGTOP-1081.patch
        0.6 kB
        Konstantin Boudnik

        Activity

        Roman Shaposhnik created issue -
        Konstantin Boudnik made changes -
        Field Original Value New Value
        Summary spark build fails deb packing needs to set SOURCE_DIR
        Konstantin Boudnik made changes -
        Summary deb packing needs to set SOURCE_DIR deb spark packing needs to set SOURCE_DIR
        Konstantin Boudnik made changes -
        Attachment BIGTOP-1081.patch [ 12604332 ]
        Konstantin Boudnik made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Roman Shaposhnik made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Konstantin Boudnik
            Reporter:
            Roman Shaposhnik
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development