0
0
Hadoopdata~10 mins

Cluster planning and sizing 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 specify the number of nodes in the Hadoop cluster.

Hadoop
num_nodes = [1]
Drag options to blanks, or click blank then click option'
Acluster_size
B10
Cnode_count
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Using a variable name instead of a number.
Choosing a number too large for a small cluster.
2fill in blank
medium

Complete the code to calculate total storage capacity in TB.

Hadoop
total_storage_tb = num_nodes * [1]
Drag options to blanks, or click blank then click option'
A500
B100
C2
D1024
Attempts:
3 left
💡 Hint
Common Mistakes
Using storage size in GB instead of TB.
Multiplying by an incorrect storage value.
3fill in blank
hard

Fix the error in the code to calculate total memory in GB.

Hadoop
total_memory_gb = num_nodes [1] 64
Drag options to blanks, or click blank then click option'
A*
B-
C+
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using addition instead of multiplication.
Using division which gives wrong results.
4fill in blank
hard

Fill both blanks to create a dictionary of node memory and storage.

Hadoop
node_specs = {'memory_gb': [1], 'storage_tb': [2]
Drag options to blanks, or click blank then click option'
A64
B128
C2
D4
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing memory and storage values.
Using total cluster values instead of per node.
5fill in blank
hard

Fill all three blanks to create a summary dictionary with nodes, total memory, and total storage.

Hadoop
cluster_summary = {'nodes': [1], 'total_memory_gb': [2], 'total_storage_tb': [3]
Drag options to blanks, or click blank then click option'
A5
B320
C10
D64
Attempts:
3 left
💡 Hint
Common Mistakes
Using per node values instead of totals.
Mixing up memory and storage values.