Bigtop
  1. Bigtop
  2. BIGTOP-586

HBase package should provide a versionless symlink to a jar for other projects to depend upon

    Details

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

      Activity

      Hide
      Roman Shaposhnik added a comment -

      Since I can't seem to attach a file. Here's a patch inline:

      diff --git bigtop-packages/src/common/hbase/install_hbase.sh bigtop-packages/src/common/hbase/install_hbase.sh
      index 2452471..88cb844 100755
      --- bigtop-packages/src/common/hbase/install_hbase.sh
      +++ bigtop-packages/src/common/hbase/install_hbase.sh
      @@ -126,6 +126,9 @@ done
       
       ln -s $ETC_DIR/conf $PREFIX/$LIB_DIR/conf
       
      +# Make a symlink of hbase.jar to hbase-version.jar
      +ln -s `cd $PREFIX/$LIB_DIR ; ls hbase*jar | grep -v tests.jar` $PREFIX/$LIB_DIR/hbase.jar
      +
       wrapper=$PREFIX/usr/bin/hbase
       mkdir -p `dirname $wrapper`
       cat > $wrapper <<EOF
      
      Show
      Roman Shaposhnik added a comment - Since I can't seem to attach a file. Here's a patch inline: diff --git bigtop-packages/src/common/hbase/install_hbase.sh bigtop-packages/src/common/hbase/install_hbase.sh index 2452471..88cb844 100755 --- bigtop-packages/src/common/hbase/install_hbase.sh +++ bigtop-packages/src/common/hbase/install_hbase.sh @@ -126,6 +126,9 @@ done ln -s $ETC_DIR/conf $PREFIX/$LIB_DIR/conf +# Make a symlink of hbase.jar to hbase-version.jar +ln -s `cd $PREFIX/$LIB_DIR ; ls hbase*jar | grep -v tests.jar` $PREFIX/$LIB_DIR/hbase.jar + wrapper=$PREFIX/usr/bin/hbase mkdir -p `dirname $wrapper` cat > $wrapper <<EOF
      Hide
      Peter Linnell added a comment -

      + 1 LGTM

      Show
      Peter Linnell added a comment - + 1 LGTM

        People

        • Assignee:
          Roman Shaposhnik
          Reporter:
          Roman Shaposhnik
        • Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development