Bird
0
0

Which of the following is a common mistake when configuring audit logging in Hadoop?

medium📝 Troubleshoot Q7 of 15
Hadoop - Security
Which of the following is a common mistake when configuring audit logging in Hadoop?
AEnabling audit logging in mapred-site.xml
BSpecifying the audit log directory
CSetting log level to INFO
DSetting dfs.namenode.audit.log.enabled to true
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct config file for audit logging

    Audit logging is configured in hdfs-site.xml, not mapred-site.xml.
  2. Step 2: Evaluate options

    A enables logging correctly; B ensures proper log location; C is the standard level; D uses the wrong config file.
  3. Final Answer:

    Enabling audit logging in mapred-site.xml -> Option A
  4. Quick Check:

    Audit config must be in hdfs-site.xml [OK]
Quick Trick: Audit logging config belongs in hdfs-site.xml only [OK]
Common Mistakes:
  • Configuring audit logging in wrong file
  • Not restarting NameNode after config changes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Hadoop Quizzes