0
0
Hadoopdata~10 mins

ResourceManager and NodeManager in Hadoop - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start the ResourceManager service in Hadoop.

Hadoop
start-[1].sh
Drag options to blanks, or click blank then click option'
AResourceManager
BDataNode
CNodeManager
DNameNode
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'NodeManager' instead of 'ResourceManager' in the script name.
Confusing DataNode or NameNode with ResourceManager.
2fill in blank
medium

Complete the code to check the status of the NodeManager service.

Hadoop
yarn [1] nodemanager
Drag options to blanks, or click blank then click option'
Astart
Brestart
Cstop
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'stop' instead of 'status'.
Confusing the command syntax for service management.
3fill in blank
hard

Fix the error in the command to list all NodeManagers registered with the ResourceManager.

Hadoop
yarn [1] nodemanagers
Drag options to blanks, or click blank then click option'
Alist
Bstatus
Cstart
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' which checks one service, not lists all.
Using 'start' or 'stop' which control services, not list them.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps NodeManager hostnames to their memory capacity if memory is greater than 8192 MB.

Hadoop
{node['[1]']: node['[2]'] for node in nodes if node['memory'] > 8192}
Drag options to blanks, or click blank then click option'
Ahostname
Bmemory
Ccpu
Ddisk
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cpu' or 'disk' instead of 'memory' for values.
Using 'memory' as keys instead of 'hostname'.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps uppercase hostnames to their CPU cores if cores are greater than 4.

Hadoop
{node['[1]'].[2](): node['[3]'] for node in nodes if node['cores'] > 4}
Drag options to blanks, or click blank then click option'
Ahostname
Bupper
Ccores
Dlower
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'lower' instead of 'upper' for string method.
Using 'cores' as keys instead of values.