You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/01/09 11:31:24 UTC

[jira] [Commented] (HIVE-2871) Add a new hook to run at the beginning and end of the Driver.run method

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

Hudson commented on HIVE-2871:
------------------------------

Integrated in Hive-trunk-hadoop2 #54 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/54/])
    HIVE-2871 Add a new hook to run at the beginning and end of the Driver.run method
(Kevin Wilfong via namit) (Revision 1301610)

     Result = ABORTED
namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1301610
Files : 
* /hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
* /hive/trunk/conf/hive-default.xml.template
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHook.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHookContext.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/HiveDriverRunHookContextImpl.java
* /hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/hooks/VerifyHooksRunInOrder.java
* /hive/trunk/ql/src/test/queries/clientpositive/hook_order.q
* /hive/trunk/ql/src/test/results/clientpositive/hook_order.q.out

                
> Add a new hook to run at the beginning and end of the Driver.run method
> -----------------------------------------------------------------------
>
>                 Key: HIVE-2871
>                 URL: https://issues.apache.org/jira/browse/HIVE-2871
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Kevin Wilfong
>            Assignee: Kevin Wilfong
>             Fix For: 0.9.0
>
>         Attachments: ASF.LICENSE.NOT.GRANTED--HIVE-2871.D2331.1.patch, ASF.LICENSE.NOT.GRANTED--HIVE-2871.D2331.2.patch, ASF.LICENSE.NOT.GRANTED--HIVE-2871.D2331.3.patch
>
>
> Driver.run is the highest level method which all queries go through, whether they come from Hive Server, the CLI, or any other entry.  We also do not have any hooks before the compilation method is called, and having hooks in Driver.run would provide this.  Having hooks in Driver.run will allow, for example, being able to overwrite config values used throughout query processing, including compilation, and at the other end, cleaning up any resources/logging any final values just before returning to the user.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira