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.

How to capture full HQL statements running real time in Hive

SOLVED Go to solution
Highlighted

How to capture full HQL statements running real time in Hive

New Contributor

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

Accepted Solutions

Re: How to capture full HQL statements running real time in Hive

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.

2 REPLIES 2

Re: How to capture full HQL statements running real time in Hive

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.

Re: How to capture full HQL statements running real time in Hive

New Contributor

Thank you @Ashutosh Mestry.