nerdexam
Cloudera

CCA-410 · Question #42

Your running a hadoop cluster with a name node on the host mynamenode. What are two ways you can determine available HDFS space in your cluster?

The correct answer is A. Run hadoop fs -du / and locate the dfs remaining value C. Run hadoop dfsadmin ?report and locate the DFS remaming value. Note: Add disk usage with human-readable size (-duh) Output of hadoop fs -dus changed to be consistent with hadoop fs -du and with Linux du. Users who previously parsed this output should update their scripts. New feature hadoop fs -du -h may be used for human readable output…

Monitoring and Logging

Question

Your running a hadoop cluster with a name node on the host mynamenode. What are two ways you can determine available HDFS space in your cluster?

Options

  • ARun hadoop fs -du / and locate the dfs remaining value
  • CRun hadoop dfsadmin ?report and locate the DFS remaming value
  • DRun hadoop DFSAdmin -spaceQuota and subtract DFS used % from configured capacity

How the community answered

(47 responses)
  • A
    81% (38)
  • D
    19% (9)

Explanation

Note: Add disk usage with human-readable size (-duh) Output of hadoop fs -dus changed to be consistent with hadoop fs -du and with Linux du. Users who previously parsed this output should update their scripts. New feature hadoop fs -du -h may be used for human readable output. C: hadoop dfsadmin -report can be used to see the HDFS free space. hdfs dfsadmin -report outputs a brief report on the overall HDFS filesystem. It's a useful command to quickly view how much disk is available, how many datanodes are running, and so on. Run the command with sudo -u hdfs prefixed to ensure you don't get a permission denied error. CDH4 runs the namenode as the hdfs user by default. However if you have changed the sudo -u hdfs hdfs dfsadmin -report You will see output similar to: Configured Capacity: 247241674752 (230.26 GB) Present Capacity: 221027041280 (205.85 GB) DFS Remaining: 221026717696 (205.85 GB) DFS Used: 323584 (316 KB) Under replicated blocks: 0 Blocks with corrupt replicas: 0 Missing blocks: 0 The bin/hadoop dfsadmin command supports a few HDFS administration related operations. The bin/hadoop dfsadmin -help command lists all the commands currently supported. For e.g.: -report : reports basic statistics of HDFS. Some of this information is also available on the NameNode front page. -safemode : though usually not required, an administrator can manually enter or leave Safemode. -finalizeUpgrade : removes previous backup of the cluster made during last upgrade. -refreshNodes : Updates the set of hosts allowed to connect to namenode.

Topics

#HDFS capacity#dfsadmin#hadoop fs commands#disk usage

Community Discussion

No community discussion yet for this question.

Full CCA-410 Practice