Skip to content

Instantly share code, notes, and snippets.

@dartov
Created July 31, 2012 08:39
Show Gist options
  • Save dartov/3215038 to your computer and use it in GitHub Desktop.
Save dartov/3215038 to your computer and use it in GitHub Desktop.
Tmux script to start local dev storm cluster
#!/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