Last active
December 30, 2015 18:49
-
-
Save chiangbing/7869825 to your computer and use it in GitHub Desktop.
storm installation
This file contains 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
sudo salt '*' cp.get_file salt://storm-0.9.0.1.tar.gz /tmp/storm-0.9.0.1.tar.gz | |
sudo salt '*' cmd.retcode 'tar zxf /tmp/storm-0.9.0.1.tar.gz -C /home/hadoop/apps/' 'runas=hadoop' | |
sudo salt '*' cp.get_file salt://storm.yaml /home/hadoop/apps/storm-0.9.0.1/conf/storm.yaml | |
sudo salt '*' file.chown /home/hadoop/apps/storm-0.9.0.1/conf/storm.yaml hadoop hadoop | |
sudo salt '*' file.mkdir /var/lib/storm | |
sudo salt '*' file.chown /var/lib/storm hadoop hadoop | |
# install storm native libraries | |
sudo salt '*' cp.get_file salt://zeromq-2.1.7.tar.gz /tmp/zeromq-2.1.7.tar.gz | |
sudo salt '*' cmd.retcode 'tar zxf /tmp/zeromq-2.1.7.tar.gz -C /tmp' | |
sudo salt '*' pkg.install 'libuuid-devel' | |
sudo salt '*' cmd.retcode 'cd /tmp/zeromq-2.1.7 && ./configure' | |
sudo salt '*' cmd.retcode 'cd /tmp/zeromq-2.1.7 && make' | |
sudo salt '*' cmd.retcode 'cd /tmp/zeromq-2.1.7 && make install' | |
sudo salt '*' cp.get_file salt://jzmq-master.zip /tmp/jzmq-master.zip | |
sudo salt '*' cmd.retcode 'cd /tmp && unzip /tmp/jzmq-master.zip' | |
sudo salt '*' cmd.retcode 'export JAVA_HOME=/usr/lib/jvm/default && cd /tmp/jzmq-master && ./autogen.sh' | |
sudo salt '*' cmd.retcode 'export JAVA_HOME=/usr/lib/jvm/default && cd /tmp/jzmq-master && ./configure' | |
sudo salt '*' cmd.retcode 'export JAVA_HOME=/usr/lib/jvm/default && cd /tmp/jzmq-master && make' | |
sudo salt '*' cmd.retcode 'export JAVA_HOME=/usr/lib/jvm/default && cd /tmp/jzmq-master && make install' | |
# install supervisord | |
sudo salt '*' pkg.install pip | |
sudo salt '*' pip.install supervisord | |
sudo salt 'hadoop1' cp.get_file salt://supervisord.conf.nimbus /etc/supervisord.conf | |
sudo salt -L 'hadoop2,hadoop3,hadoop4' cp.get_file salt://supervisord.conf.supervisor /etc/supervisord.conf | |
# start | |
sudo salt '*' cmd.retcode 'supervisord' 'runas=hadoop' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment