# Install java and make sure JAVA_HOME is properly set. # Make sure those dependencies are present: sudo apt-get install g++ uuid-dev libtool autoconf automake cd ~ # install zeromq wget http://download.zeromq.org/zeromq-2.1.7.tar.gz tar -xzf zeromq-2.1.7.tar.gz cd zeromq-2.1.7 ./configure make sudo make install cd .. # install jzmq git clone https://github.com/nathanmarz/jzmq.git cd jzmq sed -i 's/classdist_noinst.stamp/classnoinst.stamp/g' src/Makefile.am ./autogen.sh ./configure make sudo make install cd .. # install storm wget 'https://dl.dropbox.com/u/133901206/storm-0.8.2.zip' unzip storm-0.8.2.zip rm storm-0.8.2.zip cd storm-0.8.2 # create required mount folder sudo mkdir /mnt/storm sudo chown you:you ## At the meetup: # download config file curl https://gist.github.com/Jell/5428964/raw/55a95dc5352474b0fd88ff0c47fa77cebc9f8566/storm.yaml -o conf/storm.yaml # start supervisor ./bin/storm supervisor ## If you want to create a cluster by yourself before the meetup: # install zookeeper sudo apt-get install zookeeper zookeeperd # start nimbus: ./bin/storm nimbus # start ui: ./bin/storm ui # start supervisor: ./bin/storm supervisor # deploy topology: cd ~ git clone https://github.com/got-clj/raspberry-storm.git cd raspberry-storm # replace twitter credentials with your own vim src/raspberry-storm/spouts.clj lein uberjar cd ~/storm-0.8.2 ./bin/storm jar ~/raspberry-storm/target/raspberry-storm-0.1.0-SNAPSHOT-standalone.jar raspberry_storm.TopologySubmitter debug true workers 30 # Once you are done, kill the topology: ./bin/storm kill raspberry-storm