Stop all running services. First stop the remote services and then the local services, by running the following commands from any node in the cluster:
%HADOOP_NODE_INSTALL_ROOT%\stop_remote_hdp_services.cmd %HADOOP_NODE_INSTALL_ROOT%\stop_local_hdp_services.cmd