3 CASSANDRA_PASS=<%= @cassandra_pwd %>
4 CASSANDRA_IP=<%= @cassandra_ip %>
6 if [[ $(nodetool status |tail -n2 | grep -Ev "^$"a) == *"UN"* ]]; then
7 echo "exit" | cqlsh -u cassandra -p $CASSANDRA_PASS $CASSANDRA_IP > /dev/null 2>&1
9 if [[ $rc != 0 ]]; then exit $rc; fi