From a1f9d359d8933d512ddc95ca9343991f10a2f99e Mon Sep 17 00:00:00 2001 From: Sean Busbey <sean.busbey@gmail.com> Date: Thu, 22 Mar 2018 11:54:16 -0500 Subject: [PATCH] [hbase098, hbase10, scripts] deprecate bindings for EOM HBase versions. --- bin/ycsb | 10 ++++++++++ bin/ycsb.bat | 10 ++++++++++ bin/ycsb.sh | 14 ++++++++++++++ 3 files changed, 34 insertions(+) diff --git a/bin/ycsb b/bin/ycsb index 8626a473..5d624d23 100755 --- a/bin/ycsb +++ b/bin/ycsb @@ -267,6 +267,16 @@ def main(): warn("The 'couchbase' client has been deprecated. If you are using " "Couchbase 4.0+ try using the 'couchbase2' client instead.") + if binding == "hbase098": + warn("The 'hbase098' client has been deprecated because HBase 0.98 " + "is EOM. If you are using HBase 1.2+ try using the 'hbase12' " + "client instead.") + + if binding == "hbase10": + warn("The 'hbase10' client has been deprecated because HBase 1.0 " + "is EOM. If you are using HBase 1.2+ try using the 'hbase12' " + "client instead.") + if is_distribution(): db_dir = os.path.join(ycsb_home, binding + "-binding") # include top-level conf for when we're a binding-specific artifact. diff --git a/bin/ycsb.bat b/bin/ycsb.bat index 1996e023..747e707a 100644 --- a/bin/ycsb.bat +++ b/bin/ycsb.bat @@ -195,6 +195,16 @@ IF NOT "%BINDING_DIR%" == "couchbase" GOTO notOldCouchbase echo [WARN] The 'couchbase' client is deprecated. If you are using Couchbase 4.0+ try using the 'couchbase2' client instead. :notOldCouchbase +@REM HBase 0.98 deprecation message +IF NOT "%BINDING_DIR%" == "hbase098" GOTO not098HBase +echo [WARN] The 'hbase098' client is deprecated because HBase 0.98 is EOM. If you are using HBase 1.2+ try using the 'hbase12' client instead. +:not098HBase + +@REM HBase 1.0 deprecation message +IF NOT "%BINDING_DIR%" == "hbase10" GOTO not10HBase +echo [WARN] The 'hbase10' client is deprecated because HBase 1.0 is EOM. If you are using HBase 1.2+ try using the 'hbase12' client instead. +:not10HBase + @REM Get the rest of the arguments, skipping the first 2 FOR /F "tokens=2*" %%G IN ("%*") DO ( SET YCSB_ARGS=%%H diff --git a/bin/ycsb.sh b/bin/ycsb.sh index a157d6bb..4da4062e 100755 --- a/bin/ycsb.sh +++ b/bin/ycsb.sh @@ -231,6 +231,20 @@ if [ "${BINDING_DIR}" = "couchbase" ] ; then Couchbase 4.0+ try using the 'couchbase2' client instead." fi +# HBase 0.98 deprecation message +if [ "${BINDING_DIR}" = "hbase098" ] ; then + echo "[WARN] The 'hbase098' client is deprecated because HBase 0.98 \ +is EOM. If you are using HBase 1.2+ try using the 'hbase12' client \ +instead." +fi + +# HBase 1.0 deprecation message +if [ "${BINDING_DIR}" = "hbase10" ] ; then + echo "[WARN] The 'hbase10' client is deprecated because HBase 1.0 \ +is EOM. If you are using HBase 1.2+ try using the 'hbase12' client \ +instead." +fi + # For Cygwin, switch paths to Windows format before running java if $CYGWIN; then [ -n "$JAVA_HOME" ] && JAVA_HOME=$(cygpath --unix "$JAVA_HOME") -- GitLab