Di Zhu created HIVE-17134:
-----------------------------
Summary: UpdateInputAccessTimeHook in Hive doesn't implement Hook
interface so is it not usable?
Key: HIVE-17134
URL: https://issues.apache.org/jira/browse/HIVE-17134
Project: Hive
Issue Type: Bug
Affects Versions: 2.1.1
Reporter: Di Zhu
I try to run `set
hive.exec.pre.hooks=org.apache.hadoop.hive.ql.hooks.UpdateInputAccessTimeHook;`
firstly, and then it will complains **FAILED: Hive Internal Error:
java.lang.ClassCastException(org.apache.hadoop.hive.ql.hooks.UpdateInputAccessTimeHook
cannot be cast to org.apache.hadoop.hive.ql.hooks.Hook)** on any queries. I
checked the [source
code](https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/hooks/UpdateInputAccessTimeHook.java)
of that class, which doesn't implement Hook interface as stated in the error.
But all other class in the [same
package](https://github.com/apache/hive/tree/master/ql/src/java/org/apache/hadoop/hive/ql/hooks)
implements Hook interface. So am I using this class in the wrong way or it is
a bug? Thanks.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)