Hadoop Questions and Answers – YARN – 2

This set of Hadoop Question Bank focuses on “YARN – 2”.

1. Yarn commands are invoked by the ________ script.
a) hive
b) bin
c) hadoop
d) home
View Answer

Answer: b
Explanation: Running the yarn script without any arguments prints the description for all commands.

2. Point out the correct statement.
a) Each queue has strict ACLs which controls which users can submit applications to individual queues
b) Hierarchy of queues is supported to ensure resources are shared among the sub-queues of an organization
c) Queues are allocated a fraction of the capacity of the grid in the sense that a certain capacity of resources will be at their disposal
d) All of the mentioned
View Answer

Answer: d
Explanation: All applications submitted to a queue will have access to the capacity allocated to the queue.

3. The queue definitions and properties such as ________ ACLs can be changed, at runtime.
a) tolerant
b) capacity
c) speed
d) all of the mentioned
View Answer

Answer: b
Explanation: Administrators can add additional queues at runtime, but queues cannot be deleted at runtime.

4. The CapacityScheduler has a predefined queue called _________
a) domain
b) root
c) rear
d) all of the mentioned
View Answer

Answer: b
Explanation: All queues in the system are children of the root queue.

advertisement
advertisement

5. Point out the wrong statement.
a) The multiple of the queue capacity which can be configured to allow a single user to acquire more resources
b) Changing queue properties and adding new queues is very simple
c) Queues cannot be deleted, only addition of new queues is supported
d) None of the mentioned
View Answer

Answer: d
Explanation: You need to edit conf/capacity-scheduler.xml and run yarn rmadmin -refreshQueues for changing queue properties.

6. The updated queue configuration should be a valid one i.e. queue-capacity at each level should be equal to _________
a) 50%
b) 75%
c) 100%
d) 0%
View Answer

Answer: c
Explanation: Queues cannot be deleted, only the addition of new queues is supported.

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

7. Users can bundle their Yarn code in a _________ file and execute it using jar command.
a) java
b) jar
c) C code
d) xml
View Answer

Answer: b
Explanation: Usage: yarn jar <jar> [mainClass] args…

8. Which of the following command is used to dump the log container?
a) logs
b) log
c) dump
d) all of the mentioned
View Answer

Answer: a
Explanation: Usage: yarn logs -applicationId <application ID> <options>.

advertisement

9. __________ will clear the RMStateStore and is useful if past applications are no longer needed.
a) -format-state
b) -form-state-store
c) -format-state-store
d) none of the mentioned
View Answer

Answer: c
Explanation: -format-state-store formats the RMStateStore.

10. Which of the following command runs ResourceManager admin client?
a) proxyserver
b) run
c) admin
d) rmadmin
View Answer

Answer: d
Explanation: proxyserver command starts the web proxy server.

advertisement

Sanfoundry Global Education & Learning Series – Hadoop.

Here’s the list of Best Books in Hadoop.

To practice questions in all areas of Hadoop, here is complete set of 1000+ Multiple Choice Questions and Answers.

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.