Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Track hive table update and take action

Track hive table update and take action

Hi guys,

I have a requirement to execute a script automatically whenever a hive table is updated. Please suggest the best option.

Thanks

1 REPLY 1
Highlighted

Re: Track hive table update and take action

Expert Contributor

You can use pre / post execution hook in hive.

hive.exec.pre.hooks - Java class implementing ExecuteWithHookContext interface, this will be invoked before the execution of each statement

hive.exec.post.hooks - Java class implementing ExecuteWithHookContext interface, this will be invoked after the execution of each statement

Don't have an account?
Coming from Hortonworks? Activate your account here