Hadoop Questions and Answers – Hadoop Archives

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

1. _________ is the name of the archive you would like to create.
a) archive
b) archiveName
c) name
d) none of the mentioned
View Answer

Answer: b
Explanation: The name should have a *.har extension.

2. Point out the correct statement.
a) A Hadoop archive maps to a file system directory
b) Hadoop archives are special format archives
c) A Hadoop archive always has a *.har extension
d) All of the mentioned
View Answer

Answer: d
Explanation: A Hadoop archive directory contains metadata (in the form of _index and _masterindex) and data (part-*) files.

3. Using Hadoop Archives in __________ is as easy as specifying a different input filesystem than the default file system.
a) Hive
b) Pig
c) MapReduce
d) All of the mentioned
View Answer

Answer: c
Explanation: Hadoop Archives is exposed as a file system MapReduce will be able to use all the logical input files in Hadoop Archives as input.

4. The __________ guarantees that excess resources taken from a queue will be restored to it within N minutes of its need for them.
a) capacitor
b) scheduler
c) datanode
d) none of the mentioned
View Answer

Answer: b
Explanation: Free resources can be allocated to any queue beyond its guaranteed capacity.

advertisement
advertisement

5. Point out the wrong statement.
a) The Hadoop archive exposes itself as a file system layer
b) Hadoop archives are immutable
c) Archive rename, deletes and creates return an error
d) None of the mentioned
View Answer

Answer: d
Explanation: All the fs shell commands in the archives work but with a different URI.

6. _________ is a pluggable Map/Reduce scheduler for Hadoop which provides a way to share large clusters.
a) Flow Scheduler
b) Data Scheduler
c) Capacity Scheduler
d) None of the mentioned
View Answer

Answer: c
Explanation: The Capacity Scheduler supports multiple queues, where a job is submitted to a queue.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

7. Which of the following parameter describes destination directory which would contain the archive?
a) -archiveName <name>
b) <source>
c) <destination>
d) none of the mentioned
View Answer

Answer: c
Explanation: -archiveName <name> is the name of the archive to be created.

8. _________ identifies filesystem path names which work as usual with regular expressions.
a) -archiveName <name>
b) <source>
c) <destination>
d) none of the mentioned
View Answer

Answer: d
Explanation: identifies destination directory which would contain the archive.

advertisement

9. __________ is the parent argument used to specify the relative path to which the files should be archived to
a) -archiveName <name>
b) -p <parent_path>
c) <destination>
d) <source>
View Answer

Answer: b
Explanation: The hadoop archive command creates a Hadoop archive, a file that contains other files.

10. Which of the following is a valid syntax for hadoop archive?
a)

advertisement
 hadooparchive [ Generic Options ] archive
    -archiveName <name>
    [-p <parent>]
    <source>
    <destination>

b)

 hadooparch [ Generic Options ] archive
    -archiveName <name>
    [-p <parent>]
    <source>
    <destination>

c)

 hadoop [ Generic Options ] archive
    -archiveName <name>
    [-p <parent>]
    <source>
    <destination>

d) None of the mentioned
View Answer

Answer: c
Explanation: The Hadoop archiving tool can be invoked using the following command format: hadoop archive -archiveName name -p <parent> <src>* <dest>.

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.