Bird
0
0

What is wrong with this Hadoop cluster admin command?

medium📝 Debug Q6 of 15
Hadoop - Cluster Administration
What is wrong with this Hadoop cluster admin command?
hdfs dfsadmin -refreshNodes -all
AThe '-all' flag is invalid for 'dfsadmin -refreshNodes'
BThe command should be 'hadoop dfsadmin -refreshNodes -all'
CThe command requires '-report' instead of '-refreshNodes'
DThe command must include the path to refresh nodes
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command

    'hdfs dfsadmin -refreshNodes' reloads the list of nodes from the exclude file.
  2. Step 2: Identify invalid flag

    The '-all' flag is not a valid option for this command.
  3. Final Answer:

    The '-all' flag is invalid for 'dfsadmin -refreshNodes' -> Option A
  4. Quick Check:

    Check official Hadoop dfsadmin command options [OK]
Quick Trick: No '-all' flag with 'dfsadmin -refreshNodes' command [OK]
Common Mistakes:
  • Adding unsupported flags like '-all'
  • Confusing 'dfsadmin' with 'fsck' commands
  • Assuming path arguments are needed for refreshNodes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Hadoop Quizzes