Skip to content

Commit

Permalink
GEOMESA-3274 Fix AWS HBase bootstrap script file references (location…
Browse files Browse the repository at this point in the history
…tech#2980)

Update the bootstrap script with correct scala version and hbase version. Since we drop the support for 2.11 and we are moving towards hbase 2, I just change it to two by default.
  • Loading branch information
ericsun95 committed Apr 12, 2023
1 parent 8f255bf commit 5a4656d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ GMUSER=hadoop
# todo bootstrap from the current running location and ask the user if they want to
# install to /opt/geomesa ? Maybe propmpt with a default of /opt/geomesa similar to
# how the maven release plugin works?
GMDIR="/opt/geomesa-hbase_2.11-%%project.version%%"
GMDIR="/opt/geomesa-hbase_%%scala.binary.version%%-%%project.version%%"

if [[ ! -d "${GMDIR}" ]]; then
echo "Unable to find geomesa directory at ${GMDIR}"
Expand All @@ -28,7 +28,7 @@ fi

echo "Bootstrapping GeoMesa HBase with version %%project.version%% installed at ${GMDIR}"

pip install --upgrade awscli
pip3 install --upgrade awscli

if [[ ! -d "/opt" ]]; then
echo "Unable to find /opt"
Expand Down Expand Up @@ -59,7 +59,7 @@ ROOTDIR="${ROOTDIR%/}" # standardize to remove trailing slash
chown -R $GMUSER:$GMUSER ${GMDIR}

# Configure coprocessor auto-registration
DISTRIBUTED_JAR_NAME=geomesa-hbase-distributed-runtime-hbase1_2.11-%%project.version%%.jar
DISTRIBUTED_JAR_NAME=geomesa-hbase-distributed-runtime-hbase2_%%scala.binary.version%%-%%project.version%%.jar

NL=$'\n'
echo The HBase Root dir is ${ROOTDIR}.
Expand Down

0 comments on commit 5a4656d

Please sign in to comment.