Bird
0
0

You want to configure Hadoop to use Kerberos authentication for HDFS. Which two configurations must be set in core-site.xml and hdfs-site.xml respectively?

hard📝 Application Q8 of 15
Hadoop - Security
You want to configure Hadoop to use Kerberos authentication for HDFS. Which two configurations must be set in core-site.xml and hdfs-site.xml respectively?
Acore-site.xml: hadoop.security.authorization=false; hdfs-site.xml: dfs.web.authentication.kerberos=false
Bcore-site.xml: dfs.replication=3; hdfs-site.xml: dfs.permissions.enabled=true
Ccore-site.xml: hadoop.security.authentication=kerberos; hdfs-site.xml: dfs.namenode.kerberos.principal
Dcore-site.xml: fs.defaultFS=hdfs://localhost:9000; hdfs-site.xml: dfs.blocksize=128MB
Step-by-Step Solution
Solution:
  1. Step 1: Identify core-site.xml setting for Kerberos

    Set 'hadoop.security.authentication' to 'kerberos' to enable Kerberos authentication.
  2. Step 2: Identify hdfs-site.xml setting for Kerberos principal

    Set 'dfs.namenode.kerberos.principal' to specify the NameNode's Kerberos principal.
  3. Final Answer:

    core-site.xml: hadoop.security.authentication=kerberos; hdfs-site.xml: dfs.namenode.kerberos.principal -> Option C
  4. Quick Check:

    Enable Kerberos in core-site and set principal in hdfs-site [OK]
Quick Trick: Set authentication in core-site and principal in hdfs-site [OK]
Common Mistakes:
  • Confusing replication with authentication
  • Disabling security settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Hadoop Quizzes