Last active
February 9, 2017 02:42
-
-
Save ravindranathakila/f773b5c77740b6929f4ca6d032529474 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
DAEMONS="${DAEMONS} \ | |
zookeeper-server \ | |
hadoop-hdfs-datanode \ | |
hadoop-hdfs-journalnode \ | |
hadoop-hdfs-namenode \ | |
hadoop-hdfs-secondarynamenode \ | |
hadoop-httpfs \ | |
hadoop-mapreduce-historyserver \ | |
hadoop-yarn-nodemanager \ | |
hadoop-yarn-resourcemanager \ | |
hbase-master \ | |
hbase-rest \ | |
hbase-thrift \ | |
hive-metastore \ | |
hive-server2 \ | |
sqoop2-server \ | |
spark-history-server \ | |
hbase-regionserver \ | |
hue \ | |
impala-state-store \ | |
oozie \ | |
solr-server \ | |
impala-catalog \ | |
impala-server" | |
for daemon in ${DAEMONS}; do | |
sudo service ${daemon} stop | |
done | |
for daemon in ${DAEMONS}; do | |
sudo service ${daemon} start | |
done | |
exec bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment