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

Hyunsik Choi commented on TAJO-305:
-----------------------------------

I've just submitted the patch. You can kill a running query as follows:

{noformat}
hyunsik@Hyunsiks-MacBook-Pro:tajo-0.8.0-SNAPSHOT$ bin/tajo admin -list
QueryId              State   StartTime            Query                         
-------------------- ------- -------------------- ------------------------------
q_1392482437956_0001 RUNNING 2014-02-16 01:56:59  select * from lineitem orde...
hyunsik@Hyunsiks-MacBook-Pro:tajo-0.8.0-SNAPSHOT$ bin/tajo admin -kill 
q_1392482437956_0001 
q_1392482437956_0001 is killed.
hyunsik@Hyunsiks-MacBook-Pro:tajo-0.8.0-SNAPSHOT$ 
{noformat}

This work requires the changes of state machines of Query, SubQuery, QueryUnit 
and QueryUnitAttempt. This patch modified them, and additionally it makes them 
more robust by adding some transitions. Especially, a query gracefully kills 
running and failed tasks when the query is failed.

> Implement killQuery feature
> ---------------------------
>
>                 Key: TAJO-305
>                 URL: https://issues.apache.org/jira/browse/TAJO-305
>             Project: Tajo
>          Issue Type: Improvement
>          Components: query master
>            Reporter: Hyunsik Choi
>            Assignee: Hyunsik Choi
>             Fix For: 0.8-incubating
>
>         Attachments: TAJO-305.patch, TAJO-305_20140216_01:54:24.patch
>
>
> In the current version, killQuery feature is partially implemented. We need 
> to complete this feature and add a command to tsql.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to