HOWTO: Optimal Way to Shut Down an HDP Slave Node

ISSUE

What is the optimal way to shut down a HDP slave node

SOLUTION

HDP slave nodes are usually configured to run the datanode and tasktracker processes. If HBase is installed, then the slave nodes run the HBase RegionServer process as well.

To shut down the slave node, it is important to shut down the slave processes first. Each process should be shut down by the respective user account. These are the commands to run:

Stop Hbase RegionServer:

su hbase - -c "hbase-daemon.sh --config /etc/hbase/ stop regionserver"

Stop tasktracker:

su mapred - -c "hadoop-daemon.sh --config /etc/hadoop/ stop tasktracker"

Stop datanode:

su hdfs - -c "hadoop-daemon.sh --config /etc/hadoop/ stop datanode"

Try these Tutorials

HDP 2.1 Webinar Series
Join us for a series of talks on some of the new enterprise functionality available in HDP 2.1 including data governance, security, operations and data access :
Contact Us
Hortonworks provides enterprise-grade support, services and training. Discuss how to leverage Hadoop in your business with our sales team.
Integrate with existing systems
Hortonworks maintains and works with an extensive partner ecosystem from broad enterprise platform vendors to specialized solutions and systems integrators.