Complete the code to start the Ambari server service.
sudo systemctl [1] ambari-serverTo start the Ambari server, use systemctl start ambari-server.
Complete the command to check the status of Cloudera Manager agent.
sudo service cloudera-scm-agent [1]The status option shows if the Cloudera Manager agent is running.
Fix the error in the command to restart Ambari agent.
sudo systemctl [1] ambari-agentThe restart command stops and then starts the service, applying changes immediately.
Fill both blanks to create a command that checks the Ambari server logs for errors.
sudo tail -n [1] /var/log/ambari-server/ambari-server.[2]
The command shows the last 100 lines of the current Ambari server log file.
Fill all three blanks to create a command that lists all running Cloudera Manager services and filters for 'Active'.
sudo systemctl list-units --type=[1] | grep [2] | grep [3]
This command lists all services, filters those related to Cloudera, then shows only those that are active.