diff --git a/bin/ycsb b/bin/ycsb index 4db2926e8d043d23947018aa96f5b8e161a145aa..dad1fab2dcc3de17b2cd7bacaa86988e7689d7d3 100755 --- a/bin/ycsb +++ b/bin/ycsb @@ -249,6 +249,10 @@ def main(): "cassandra-cql' clients are deprecated. If you are using " "Cassandra 2.X try using the 'cassandra2-cql' client instead.") + if binding == "couchbase": + warn("The 'couchbase' client has been deprecated. If you are using " + "Couchbase 4.0+ try using the 'couchbase2' 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 a43a1677a18eaccb49eab9108df65dfe5cbfeb01..bd609481b4e8cffd0f6830d95ec01ea837108359 100644 --- a/bin/ycsb.bat +++ b/bin/ycsb.bat @@ -183,6 +183,11 @@ IF NOT "%BINDING_DIR%" == "cassandra" GOTO notOldCassandra echo [WARN] The 'cassandra-7', 'cassandra-8', 'cassandra-10', and cassandra-cql' clients are deprecated. If you are using Cassandra 2.X try using the 'cassandra2-cql' client instead. :notOldCassandra +@REM Couchbase deprecation message +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 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 efdb58bda26554c8a09fdf9816e7c99c15facb08..cc882602d8ab3c6c5b148a1e81b7fea37b22eb7b 100755 --- a/bin/ycsb.sh +++ b/bin/ycsb.sh @@ -215,6 +215,12 @@ cassandra-cql' clients are deprecated. If you are using \ Cassandra 2.X try using the 'cassandra2-cql' client instead." fi +# Couchbase deprecation message +if [ "${BINDING_DIR}" = "couchbase" ] ; then + echo "[WARN] The 'couchbase' client is deprecated. If you are using \ +Couchbase 4.0+ try using the 'couchbase2' 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")