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

Vihang Karajgaonkar commented on HIVE-15626:
--------------------------------------------

I think the addition to beeline behavior with the patch is it doesn't exit the 
shell only since it was already cancelling the query as an effect of closing of 
the socket. 

I did this manual test before and after the patch

Before: Ctrl+c exits the shell (it also cancels the query if you look into the 
HS2 logs)

{noformat}
0: jdbc:hive2://vihang-mbp.local:10000/defaul> select * from likes join names 
on likes.id = names.id;
WARNING: 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.
vihang-MBP:bin vihang$
{noformat}

After:
{noformat}
0: jdbc:hive2://vihang-mbp.local:10000/defaul> select * from likes join names 
on likes.id = names.id;
WARNING: 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.
Interrupting... Please be patient this may take some time.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/Users/vihang/work/src/upstream/hive/packaging/target/apache-hive-2.2.0-SNAPSHOT-bin/apache-hive-2.2.0-SNAPSHOT-bin/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/Users/vihang/work/src/cdh/hadoop/hadoop-main/hadoop-dist/target/hadoop-2.6.0-cdh5.9.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Error: Query was cancelled (state=01000,code=0)
0: jdbc:hive2://vihang-mbp.local:10000/defaul>
{noformat}


> beeline exits on ctrl-c instead of canceling the query
> ------------------------------------------------------
>
>                 Key: HIVE-15626
>                 URL: https://issues.apache.org/jira/browse/HIVE-15626
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>            Reporter: Sergey Shelukhin
>            Assignee: Vihang Karajgaonkar
>         Attachments: HIVE-15626.01.patch
>
>
> I am seeing this in 1.2



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to