Hadoop Questions and Answers – HDFS Administration

This set of Hadoop Multiple Choice Questions & Answers (MCQs) focuses on “HDFS Administration”.

1. Which hdfs command is used to check for various inconsistencies?
a) fsk
b) fsck
c) fetchdt
d) none of the mentioned
View Answer

Answer: b
Explanation: fsck is designed for reporting problems with various files, for example, missing blocks for a file or under-replicated blocks.

2. Point out the correct statement.
a) All hadoop commands are invoked by the bin/hadoop script
b) Hadoop has an option parsing framework that employs only parsing generic options
c) Archive command creates a hadoop archive
d) All of the mentioned
View Answer

Answer: a
Explanation: Running the hadoop script without any arguments prints the description for all commands.

3. HDFS supports the ____________ command to fetch Delegation Token and store it in a file on the local system.
a) fetdt
b) fetchdt
c) fsk
d) rec
View Answer

Answer: b
Explanation: Delegation token can be later used to access secure server from a non secure client.

4. In ___________ mode, the NameNode will interactively prompt you at the command line about possible courses of action you can take to recover your data.
a) full
b) partial
c) recovery
d) commit
View Answer

Answer: c
Explanation: Recovery mode can cause you to lose data, you should always backup your edit log and fsimage before using it.

advertisement
advertisement

5. Point out the wrong statement.
a) classNAME displays the class name needed to get the Hadoop jar
b) Balancer Runs a cluster balancing utility
c) An administrator can simply press Ctrl-C to stop the rebalancing process
d) None of the mentioned
View Answer

Answer: a
Explanation: classpath prints the class path needed to get the Hadoop jar and the required libraries.

6. _________ command is used to copy file or directories recursively.
a) dtcp
b) distcp
c) dcp
d) distc
View Answer

Answer: b
Explanation: Usage of the distcp command: hadoop distcp <srcurl> <desturl>.

Note: Join free Sanfoundry classes at Telegram or Youtube

7. __________ mode is a Namenode state in which it does not accept changes to the name space.
a) Recover
b) Safe
c) Rollback
d) None of the mentioned
View Answer

Answer: c
Explanation: dfsadmin runs a HDFS dfsadmin client.

8. __________ command is used to interact and view Job Queue information in HDFS.
a) queue
b) priority
c) dist
d) all of the mentioned
View Answer

Answer: a
Explanation: Hadoop script can be used to invoke any class.

advertisement

9. Which of the following command runs the HDFS secondary namenode?
a) secondary namenode
b) secondarynamenode
c) secondary_namenode
d) none of the mentioned
View Answer

Answer: b
Explanation: The secondary NameNode merges the fsimage and the edits log files periodically and keeps edits log size within a limit.

10. Which of the following is used for the MapReduce job Tracker node?
a) mradmin
b) tasktracker
c) jobtracker
d) none of the mentioned
View Answer

Answer: c
Explanation: tasktracker runs a MapReduce task Tracker node.

advertisement

Sanfoundry Global Education & Learning Series – Hadoop.

Here’s the list of Best Books in Hadoop.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.