nerdexam
Cloudera

CCA-410 · Question #41

You have a cluster running 32 slave nodes and 3 master nodes running mapreduce V1 (MRv1). You execute the command: $ hadoop fsck / What four cluster conditions running this command will return to you?

The correct answer is A. The current state of the file system returned from scanning individual blocks on each datanode D. Under-replicated blocks E. Blocks replicated improperly or that don't satisfy your cluster enhancement policy (e. g. , too many F. Number of datanodes. HDFS supports the fsck command to check for various inconsistencies. It it is designed for reporting problems with various files, for example, missing blocks for a file or under- replicated blocks (D). Unlike a traditional fsck utility for native file systems, this command does…

Monitoring and Logging

Question

You have a cluster running 32 slave nodes and 3 master nodes running mapreduce V1 (MRv1). You execute the command:

$ hadoop fsck / What four cluster conditions running this command will return to you?

Options

  • AThe current state of the file system returned from scanning individual blocks on each datanode
  • BNumber of dead datanodes
  • CConfigure capacity of your cluster
  • DUnder-replicated blocks
  • EBlocks replicated improperly or that don't satisfy your cluster enhancement policy (e. g. , too many
  • FNumber of datanodes
  • Gthe current state of the file system according to the namenode
  • Hthe location for every block

How the community answered

(28 responses)
  • A
    82% (23)
  • C
    4% (1)
  • G
    11% (3)
  • H
    4% (1)

Explanation

  • HDFS supports the fsck command to check for various inconsistencies. It it is designed for reporting problems with various files, for example, missing blocks for a file or under- replicated blocks (D). Unlike a traditional fsck utility for native file systems, this command does not correct the errors it detects. Normally NameNode automatically corrects most of the recoverable failures. By default fsck ignores open files but provides an option to select all files during reporting. hadoop fsck /path/to/directory Total size: 16565944775310 B Total dirs: 3922 Total files: 418464 Total blocks (validated): 502705 (avg. block size 32953610 B) Minimally replicated blocks: 502705 (100.0 %) Over-replicated blocks: 0 (0.0 %) Under-replicated blocks: 0 (0.0 %) // (D) Mis-replicated blocks: 0 (0.0 %) // (E) Default replication factor: 3 Average block replication: 3.0 Corrupt blocks: 0 Missing replicas: 0 (0.0 %) Number of data-nodes: 18 // (F) Number of racks: 1 FSCK ended at Thu Oct 20 20:49:59 CET 2011 in 7516 milliseconds The filesystem under path '/path/to/directory' is HEALTHY

Topics

#fsck#HDFS health#under-replicated blocks#NameNode reporting

Community Discussion

No community discussion yet for this question.

Full CCA-410 Practice