Hey Chinna!

I don't think a mapping like that is easy to get...I would rather try to narrow 
down to a single call which consumes most of the time.
There is a log message which can help you get to the most relevant metastore 
call:
https://github.com/apache/hive/blob/0d9deba3c15038df4c64ea9b8494d554eb8eea2f/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L5405

cheers,
Zoltan

On 2/10/20 1:07 PM, Chinna Rao Lalam wrote:
Hi All,

Is there any way to find Hive query to Datanucleus queries mapping.

"select * from table" this hive query will generate multiple Datanucleus
queries and execute on configured DB.
In our DB some of the queries are running slow, So we want to see
hivequery->datanucleus query mapping to find out which hive query of
datanucleus query is running slow.

If we enable Datanucleus debug log we can see generated queries but not
mapping.

Thanks
Chinna

Reply via email to