0
0
Hadoopdata~10 mins

Why cluster administration ensures reliability in Hadoop - Test Your Understanding

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

Complete the code to start the Hadoop cluster service.

Hadoop
sudo service hadoop-[1] start
Drag options to blanks, or click blank then click option'
Anamenode
Bdatanode
Cresourcemanager
Dnodemanager
Attempts:
3 left
💡 Hint
Common Mistakes
Starting datanode first instead of namenode
Confusing resource manager with namenode
2fill in blank
medium

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

Hadoop
hdfs dfsadmin -report | grep [1]
Drag options to blanks, or click blank then click option'
ANameNode
BDataNode
CResourceManager
DNodeManager
Attempts:
3 left
💡 Hint
Common Mistakes
Using NameNode instead of DataNode in grep
Confusing ResourceManager with DataNode
3fill in blank
hard

Fix the error in the command to restart the ResourceManager service.

Hadoop
sudo service hadoop-[1] restart
Drag options to blanks, or click blank then click option'
Anodemanager
Bnamenode
Cdatanode
Dresourcemanager
Attempts:
3 left
💡 Hint
Common Mistakes
Restarting namenode instead of resourcemanager
Using datanode or nodemanager incorrectly
4fill in blank
hard

Fill both blanks to create a dictionary of node statuses where keys are node names and values are their {{BLANK_1}} if they {{BLANK_2}} the cluster.

Hadoop
node_status = {node: status for node, status in nodes.items() if status [1] 'active' and node [2] cluster_nodes}
Drag options to blanks, or click blank then click option'
A==
Bin
C!=
Dnot in
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' for status check
Using 'not in' instead of 'in' for node membership
5fill in blank
hard

Fill all three blanks to create a dictionary of node loads where keys are node names in uppercase, values are their load if load {{BLANK_1}} threshold and node {{BLANK_2}} active_nodes and status {{BLANK_3}} 'active'.

Hadoop
node_loads = {node[1]: load for node, (load, status) in node_info.items() if load [2] threshold and node [3] active_nodes and status == 'active'}
Drag options to blanks, or click blank then click option'
A.upper()
B<
Cin
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>' instead of '<' for load comparison
Using 'not in' instead of 'in' for active_nodes membership
Forgetting to uppercase node names