You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Chaoyu Tang (JIRA)" <ji...@apache.org> on 2015/02/27 20:11:05 UTC

[jira] [Commented] (HIVE-9263) Implement controllable exit code in beeline

    [ https://issues.apache.org/jira/browse/HIVE-9263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14340637#comment-14340637 ] 

Chaoyu Tang commented on HIVE-9263:
-----------------------------------

I was so far not able to reproduce this issue in my local environment, here is my reproducer test.sh:
{code}
#!/bin/bash 
$HIVE_HOME/bin/beeline -u jdbc:hive2://localhost:10001 -n hive -p hivepwd -e "show tables in abc"
echo "Return Code - $?"
{code}
I run ./test.sh and got following expected return:
{code}
Connecting to jdbc:hive2://localhost:10001
Connected to: Apache Hive (version 1.2.0-SNAPSHOT)
Driver: Hive JDBC (version 1.2.0-SNAPSHOT)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Error: Error while compiling statement: FAILED: SemanticException [Error 10072]: Database does not exist: abc (state=42000,code=10072)
Closing: 0: jdbc:hive2://localhost:10001
Return Code - 1
{code}


> Implement controllable exit code in beeline
> -------------------------------------------
>
>                 Key: HIVE-9263
>                 URL: https://issues.apache.org/jira/browse/HIVE-9263
>             Project: Hive
>          Issue Type: Improvement
>          Components: Beeline
>            Reporter: Johndee Burks
>            Assignee: Chaoyu Tang
>            Priority: Minor
>
> It would be nice if beeline implemented something like SQLPlus WHENEVER to control exit codes. This would be useful when performing beeline actions through a shell script. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)