#!/bin/bash # # Simple tool for stopping Spark, HBase, and HDFS in sequence. Displaying jps for current machine # and all registered slaves. # # $Id: //guest/cmclouth/projects/htd-deployment/htd-source/tools/stopanalytics.sh#4 $ # function runjps() { echo "jps on $HOSTNAME" jps for htdanalyticsdataslave in $(grep -v "^$" "/opt/interset/hadoop/etc/hadoop/slaves" | grep -v "^#"); do echo "jps on $htdanalyticsdataslave" ssh "$htdanalyticsdataslave" jps done } HOSTNAME=$(hostname) # sudo service spark stop /opt/interset/spark/sbin/stop-all.sh sleep 3 # sudo service hbase stop /opt/interset/hbase/bin/stop-hbase.sh sleep 3 # sudo service hdfs stop /opt/interset/hadoop/sbin/stop-dfs.sh sleep 3 runjps
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 18158 | Charlie McLouth | Changed filetype to ktext | ||
#3 | 18154 | Charlie McLouth | corrected logic for determining services are running correctly | ||
#2 | 18153 | Charlie McLouth | Merging changes from dev to main | ||
#1 | 18131 | Charlie McLouth | Moving files | ||
//guest/cmclouth/projects/htd-deployment/htd-source/stopanalytics.sh | |||||
#2 | 18126 | Charlie McLouth |
Fixed issue where migrate_aggregates was not being performed. Modified stop script to showcase jps output from all nodes |
||
#1 | 18125 | Charlie McLouth | scripts and configuration for deploying analytics and investigators |