Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

How to capture full HQL statements running real time in Hive

Hi,

I am trying to build a script to capture lineage (Atlas) when Data moves out of Hive. In order to capture the HQL statements executed in Hive( MR / Tez) by other applications, I am looking for some API endpoint to capture real time events occurring in hive.

Thank you,

Subash

1 ACCEPTED SOLUTION

Expert Contributor

@subash sharma Have taken a look at the Hive Hook code? This should give you a good idea of the approach used. I don't know if that will be sufficient for all your needs, but it should give you a good idea on how to approach the problem.

Hope this helps.

View solution in original post

2 REPLIES 2

Expert Contributor

@subash sharma Have taken a look at the Hive Hook code? This should give you a good idea of the approach used. I don't know if that will be sufficient for all your needs, but it should give you a good idea on how to approach the problem.

Hope this helps.

Thank you @Ashutosh Mestry.