Created
July 31, 2012 08:39
-
-
Save dartov/3215038 to your computer and use it in GitHub Desktop.
Tmux script to start local dev storm cluster
This file contains hidden or 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
#!/bin/sh | |
export DISABLE_AUTO_TITLE=true | |
SESSION_NAME="local-storm" | |
tmux has-session -t $SESSION_NAME | |
if [ $? != 0 ] | |
then | |
rm -rf /mnt/storm/* | |
rm -rf /tmp/dev-storm-zookeeper/* | |
tmux new-session -s $SESSION_NAME -n dev-zookeeper -d | |
tmux send-keys -t $SESSION_NAME 'storm dev-zookeeper' C-m | |
tmux new-window -n nimbus -t $SESSION_NAME | |
tmux send-keys -t $SESSION_NAME 'storm nimbus -c nimbus.host=localhost' C-m | |
tmux new-window -n ui -t $SESSION_NAME | |
tmux send-keys -t $SESSION_NAME 'storm ui -c nimbus.host=localhost' C-m | |
tmux new-window -n supervisor -t $SESSION_NAME | |
tmux send-keys -t $SESSION_NAME 'storm supervisor -c nimbus.host=localhost' C-m | |
fi | |
tmux attach -t $SESSION_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment