hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From " (JIRA)" <>
Subject [jira] [Commented] (HIVE-243) ^C breaks out of running query, but not whole CLI
Date Tue, 10 May 2011 21:35:47 GMT

] commented on HIVE-243:

This is an automatically generated e-mail. To reply, visit:

(Updated 2011-05-10 21:33:17.693931)

Review request for hive.


Fixed by adding INT signal hander that interrupts the CLI thread. The CLI thread gets InterruptedException
and it stops the current command.

This addresses bug HIVE-243.


  trunk/cli/src/java/org/apache/hadoop/hive/cli/ 1100312 
  trunk/common/src/java/org/apache/hadoop/hive/common/ PRE-CREATION

  trunk/common/src/java/org/apache/hadoop/hive/common/ PRE-CREATION

  trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ 1100312 
  trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ 1100312 
  trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ 1100312 


Testing (updated)

Manual test Ctrl+C on bunch of command (show tables, select, etc)
Tested interrupting the command on large data set in different stages of the processing (JDO,
MapReduce, building the input summary).
example queries:
explain select count(*) from xyz where ds = '2011-02-01';
select count(*) from xyz where ds = '2011-02-01';



> ^C breaks out of running query, but not whole CLI
> -------------------------------------------------
>                 Key: HIVE-243
>                 URL:
>             Project: Hive
>          Issue Type: Wish
>          Components: Query Processor
>    Affects Versions: 0.8.0
>            Reporter: Adam Kramer
> It would be lovely if, when I know a query is bad, I could just ^C out of it. I can do
that now, but the whole CLI quits.
> It'd be quite nice if it took an extra ^C to break the CLI, or if there was some control
character to break out of a query without breaking out of the CLI.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message