Configuring query audit logs to include caller context
Learn how you can configure Hive to audit partitions that are scanned as part of a Hive query. The audit information comprises the Query ID and User ID, which helps in meeting compliance requirements, such as controlling user access to data from specific regions or access only to particular time periods.
The audit information that is logged is stored in the HDFS audit log entry. You can
access the audit logs from either Cloudera Manager or through the command line:
- From Cloudera Manager
Access the log file from Clusters > HDFS-1 > NameNode Web UI > Utilities > logs >
hdfs-audit.log
- From the command line:
Access the log file from /var/log/hadoop-hdfs/hdfs-auidt.log
hdfs-audit.log
file.