[
https://issues.apache.org/jira/browse/HIVE-14151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15359710#comment-15359710
]
Vihang Karajgaonkar commented on HIVE-14151:
--------------------------------------------
The issue is in ext/cli.sh file
The single quotes in the following section of script is what is causing the
issue
{noformat}
# Set old CLI as the default client
if [ -n '$USE_DEPRECATED_CLI' ]; then
USE_DEPRECATED_CLI="true"
fi
{noformat}
In order to confirm
{noformat}
$ echo $USE_DEPRECATED_CLI
false
$ echo '$USE_DEPRECATED_CLI'
$USE_DEPRECATED_CLI
$
{noformat}
The fix should be to remove the single quotes around USE_DEPRECATED_CLI
> Use of USE_DEPRECATED_CLI environment variable does not work
> ------------------------------------------------------------
>
> Key: HIVE-14151
> URL: https://issues.apache.org/jira/browse/HIVE-14151
> Project: Hive
> Issue Type: Bug
> Components: CLI
> Reporter: Vihang Karajgaonkar
>
> According to
> https://cwiki.apache.org/confluence/display/Hive/Replacing+the+Implementation+of+Hive+CLI+Using+Beeline
> if we set USE_DEPRECATED_CLI=false it should use beeline for hiveCli. But it
> doesn't seem to work.
> In order to reproduce this issue:
> {noformat}
> $ echo $USE_DEPRECATED_CLI
> $ ./hive
> Hive-on-MR is deprecated in Hive 2 and may not be available in the future
> versions. Consider using a different execution engine (i.e. tez, spark) or
> using Hive 1.X releases.
> hive>
> $
> $ export USE_DEPRECATED_CLI=false
> $ echo $USE_DEPRECATED_CLI
> false
> $ ./hive
> Hive-on-MR is deprecated in Hive 2 and may not be available in the future
> versions. Consider using a different execution engine (i.e. tez, spark) or
> using Hive 1.X releases.
> hive>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)