I am working on incremental replication and have some queries related to this. I see that there are two hooks which can be plugged into Hive.
a. MetastoreAuditLogListener (Metastore events)
b. CliAuditLogHook (All queries)
As I understand, In addition to MetaStoreAuditLogListener, CLIAuditLogHook will get triggered on all possible queries (including read queries) and would update mapred stats as well.
But other than this if *only* replication is concerned everything can be achieved by MetastoreAuditLogListener.
Can you guys let me know if this is correct or are there any specific events which a metastore won't receive.
Thanks,
Prashant