Created 07-29-2022 01:13 AM
Hey Team,
i want to know that if i have EMP Database and in EMP WE have 1 Table so in cluster how many user is using that DB And Table want to check .
Thanks
Reg Imran Chaush
Created 08-01-2022 01:36 PM
@Imran_chaush If you are on CDP, and using Ranger for authorization, then you may check the audit log to see which users tried to access that specific database and table. Else, you will have to read the raw log file to see what are the queries run on a specific table, and then try to find out the users submitting those queries.
e.g.
grep -E 'Compiling.*<table name>' /var/log/hive/hadoop-cmf-hive_on_tez-HIVESERVER2-node1.log.outColumn 5 is your session ID, and you may grep for the session ID again to find the user associated with it.
Created 08-04-2022 02:11 PM
@Imran_chaush Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks
Regards,
Diana Torres,