diff --git a/bin/ext/cli.cmd b/bin/ext/cli.cmd index 3a96d03..d9185c0 100644 --- a/bin/ext/cli.cmd +++ b/bin/ext/cli.cmd @@ -28,9 +28,13 @@ goto :EOF goto :EOF :update_cli + if [%USE_DEPRECATED_CLI%] == [] ( + set USE_DEPRECATED_CLI=false + ) + if /I "%USE_DEPRECATED_CLI%" == "true" ( call :old_cli - ) else if ( + ) else ( call :new_cli ) goto :EOF diff --git a/bin/ext/cli.sh b/bin/ext/cli.sh index 893b7fc..e7897b3 100644 --- a/bin/ext/cli.sh +++ b/bin/ext/cli.sh @@ -16,10 +16,14 @@ THISSERVICE=cli export SERVICE_LIST="${SERVICE_LIST}${THISSERVICE} " +# Set old CLI as the default client +if [ -n '$USE_DEPRECATED_CLI' ]; then + USE_DEPRECATED_CLI="true" +fi + updateBeelineOpts() { # If process is backgrounded, don't change terminal settings if [[ ! $(ps -o stat= -p $$) == *+ ]]; then - echo "background" export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Djline.terminal=jline.UnsupportedTerminal" fi }