Skip to content

Instantly share code, notes, and snippets.

@ravindranathakila
Last active February 9, 2017 02:42
Show Gist options
  • Save ravindranathakila/f773b5c77740b6929f4ca6d032529474 to your computer and use it in GitHub Desktop.
Save ravindranathakila/f773b5c77740b6929f4ca6d032529474 to your computer and use it in GitHub Desktop.
#! /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