• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

HDPCA Exam Objective – Restart an HDP service

by admin

Note: This is post is part of the HDPCA exam objective series

Ambari has made the job of hadoop admin much easier. With ambari you can start/stop/restart any service with a click of a button. With ambari you can see exactly what is happening behind the scenes when you start/stop a service. You can also troubleshoot a failed start/stop of a service by viewing the logs from the ambari dashboard itself.

Managing Services using Amabari

You can manage the services currently configured in you HDP cluster from the Services tab. On the left sidebar, you will see all the services currently configured under the cluster.

managing service using ambari HDPCA exam objective

Start and Stop Services

With ambari, you can either start/stop all services in one go or do it individually for a single service.

1. Start/stop all services

To stop all services, goto the Services page and either click on “Stop All” options under Actions drop-dwon in the left sidebar.

Stop all services using ambari HDPCA exam

When you stop all the services, you can view the progress in the pop-up window that opens up immediately. The status of individual service can be viewed as well in the pop-up window.

progress of background operations ambari HDPCA

The status of services on individual cluster nodes can be viewed as well. The logs of individual services can be viewed without actually logging into any cluster nodes, straight from the ambari dashboard.

nodewise services status in ambari HDPCA

Individual status of services in ambari HDPCA

log files of individual services in ambari HDPCA

You can close the pop-up window and reopen it using the small Blue button at the top of the ambari dashboard.

view background jobs in Ambari dashboard

Once all the services are stopped, the “Start All” Services button will be automatically enabled and we can start all the services back again.

start all the services using ambari HDPCA exam

Wait for some time after you restart all the services for the alerts to go away.

2. Start/stop/restart Individual Services

We can also start/stop individual services. Let see how we can stop the YARN service from the Services page in ambari Dashboard.

stop individual service using ambari HDPCA exam

The pop-up window will Warn you about the other services affecting because of stopping YARN service. You also have the option of “Turning on Maintenance Mode for YARN” which disable the alerts.

warning while stopping YARN service in ambari

You can view the progress and logs in the pop-up window which shows the background operations currently running.

progress of background operations in ambari HDPCA exam

Verify the status of the service in the Services page. You would see all the Components of the YARN service stopped here with “+” symbol in front of them indicating the maintenance mode.

verify service status in ambari HDPCA exam

Similarly, you can start the YARN service in the “Service Action” drop-down.

start YARN service in ambari dashboard

We will turn on the maintenance mode back again while starting the service.

turn on maintenance mode back again while starting a service in ambari HDPCA exam

Verify the service status on the services page. Once again wait for some time for the alerts to disappear. Or you can also refresh the page.

verify service status after starting service in ambari HDP

You can also restart a Service from the service action drop-down as shown below.

Restart a service in ambari dashboard HDPCA

Filed Under: Hadoop, HDPCA, Hortonworks HDP

Some more articles you might also be interested in …

  1. HDPCA Exam Objective – Define and deploy a rack topology script
  2. HDPCA Exam Objective – Decommission a node (datanode)
  3. How to run Hadoop without using SSH
  4. HDPCA Exam Objective – Configure HDFS ACLs
  5. HDPCA Exam Objective – View an application’s log file (Troubleshoot a failed job)
  6. HDPCA Exam Objective – Create a snapshot of an HDFS directory
  7. HDPCA Exam Objective – Add a new node to an existing cluster
  8. CCA 131 – Perform OS-level configuration for Hadoop installation
  9. Converting Many Small Files To A Sequence File In HDFS
  10. CCA131 – Configuring HDFS snapshot Policy

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright