diff --git a/bin/ycsb b/bin/ycsb index 8626a473c1c853b96bae0f394ab2a1324f7a6450..5d624d23f4fbb9efb153a6439e9f94066c319e6f 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 1996e02342266ad35580552be6ed18b053e0cf93..747e707a69156a67a325552e1b50fe57ed4016f0 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 a157d6bb4f09cd3c344b1b62a1c09cd0df0a60b0..4da4062e48c20d1b080943fb0f5263aae4722b6a 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")