Complete the code to show the command that starts the Cloudera Manager service.
sudo systemctl [1] cloudera-scm-serverThe command sudo systemctl start cloudera-scm-server starts the Cloudera Manager service.
Complete the code to list all services managed by Hortonworks Ambari.
ambari-server [1]The command ambari-server list-services lists all services managed by Ambari.
Fix the error in the command to check the status of the Hadoop service in Cloudera Manager.
sudo service hadoop-[1] statusThe correct service name to check the Hadoop NameNode status is hadoop-namenode.
Fill both blanks to create a dictionary comprehension that maps service names to their status in Ambari.
service_status = { [1]: ambari_client.get_status([2]) for [1] in services_list }The dictionary comprehension uses service as the key and calls ambari_client.get_status(service) for each service in services_list.
Fill all three blanks to filter and create a dictionary of Cloudera services with status 'running'.
running_services = { [1]: [2] for [1] in all_services if [2] == 'running' }The comprehension iterates over all_services using service as key, gets the status from service_status[service], and filters where service_status[service] == 'running'.