Sha256: c1c3172c5dba633edb1024a0b5338929e7bb594aab8ee76e7583001b61da57ff

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

#!/bin/sh

cd $(dirname $(dirname $0))

mkdir -p hbase
mkdir -p zookeeper
mkdir -p downloads
root=$(pwd)

version=$(curl -sS https://www-us.apache.org/dist/hbase/stable/ | grep -oP '(?<=hbase-)(\d+\.?)+' | head -n1)

echo HBase stable version is $version

if [ ! -f downloads/hbase-$version-bin.tar.gz ]; then
  echo Downloading HBase ...
  wget -P downloads http://www-us.apache.org/dist/hbase/stable/hbase-$version-bin.tar.gz
fi

echo Extracting HBase ...
cd hbase
tar -zxf $root/downloads/hbase-$version-bin.tar.gz

echo Configuring HBase ...
echo "export JAVA_HOME=/usr" >> hbase-$version/conf/hbase-env.sh
tee <<-EOF > hbase-$version/conf/hbase-site.xml
<configuration>
  <property>
    <name>hbase.rootdir</name>
    <value>file://$root/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>$root/zookeeper</value>
  </property>
  <property>
    <name>hbase.unsafe.stream.capability.enforce</name>
    <value>false</value>
  </property>
</configuration>
EOF

echo Launching HBase ...
./hbase-$version/bin/start-hbase.sh
./hbase-$version/bin/hbase-daemon.sh start thrift

cd $root

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
moneta-1.1.1 script/start-hbase
moneta-1.1.0 script/start-hbase