Github user mhthanh commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/156#discussion_r18077006
  
    --- Diff: tajo-docs/src/main/sphinx/tsql/admin_command.rst ---
    @@ -0,0 +1,60 @@
    +*********************************
    +Administration Commands
    +*********************************
    +
    +
    +==========
    +Synopsis
    +==========
    +
    +Tsql provides commands for administrator as follows as follows:
    +
    +.. code-block:: sql
    +
    +  default> \admin;
    +  usage: admin [options]
    +   -cluster          Show Cluster Info
    +   -desc             Show Query Description
    +   -h,--host <arg>   Tajo server host
    +   -kill <arg>       Kill a running query
    +   -list             Show Tajo query list
    +   -p,--port <arg>   Tajo server port
    +   -showmasters      gets list of tajomasters in the cluster
    +
    +
    +-----------------------------------------------
    +Basic usages
    +-----------------------------------------------
    +
    +``-list`` options shows a list of all running queries as follows: ::
    +
    +  default> \admin -list
    +  QueryId              State               StartTime           Query
    +  -------------------- ------------------- ------------------- 
-----------------------------
    +  q_1411357607375_0006 QUERY_RUNNING       2014-09-23 07:19:40 select 
count(*) from lineitem
    +
    +
    +``-desc`` options shows a detailed description of a specified running 
query s as follows: ::
    +
    +  default> \admin -desc q_1411357607375_0006
    +  Id: 1
    +  Query Id: q_1411357607375_0006
    +  Started Time: 2014-09-23 07:19:40
    +  Query State: QUERY_RUNNING
    +  Execution Time: 20.0 sec
    +  Query Progress: 0.249
    +  Query Statement:
    +  select count(*) from lineitem
    +
    +
    +``-kill`` options kills a specified running queries as follows: ::
    +
    +  default> \admin -kill q_1411357607375_0007
    +  q_1411357607375_0007 is killed successfully.
    +
    +
    +
    +``-showmasters`` options shows a list of all tajo masters as follows: ::
    --- End diff --
    
    Typos: "options" -> "option"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to