0
0
Hadoopdata~10 mins

Hadoop distributions (Cloudera, Hortonworks) - Interactive Code Practice

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

Complete the code to show the command that starts the Cloudera Manager service.

Hadoop
sudo systemctl [1] cloudera-scm-server
Drag options to blanks, or click blank then click option'
Astart
Bstop
Crestart
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' instead of 'start'.
Using 'status' which only shows service status.
2fill in blank
medium

Complete the code to list all services managed by Hortonworks Ambari.

Hadoop
ambari-server [1]
Drag options to blanks, or click blank then click option'
Alist-services
Bstatus
Cstop
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' which shows Ambari server status only.
Using 'start' or 'stop' which control the server.
3fill in blank
hard

Fix the error in the command to check the status of the Hadoop service in Cloudera Manager.

Hadoop
sudo service hadoop-[1] status
Drag options to blanks, or click blank then click option'
Aresourcemanager
Bnamenode
Cdatanode
Dnodemanager
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'datanode' which is a worker node service.
Using 'resourcemanager' which manages resources, not filesystem.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps service names to their status in Ambari.

Hadoop
service_status = { [1]: ambari_client.get_status([2]) for [1] in services_list }
Drag options to blanks, or click blank then click option'
Aservice
Cstatus
Dservices_list
Attempts:
3 left
💡 Hint
Common Mistakes
Using different variable names for key and function argument.
Using 'status' or 'services_list' as the key.
5fill in blank
hard

Fill all three blanks to filter and create a dictionary of Cloudera services with status 'running'.

Hadoop
running_services = { [1]: [2] for [1] in all_services if [2] == 'running' }
Drag options to blanks, or click blank then click option'
Aservice
Bstatus
Cservice_status[service]
Dall_services
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing variable names for keys and values.
Using the wrong variable in the if condition.