Requirements:
- install java
- install zookeeper
- install storm
Installing Java:
sudo apt-get install software-properties-common python-software-propertiessudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get install oracle-java8-installer
Check Java version after successful installation :
java -version
Setting Java path
Add following two lines into .bashrc file
Refer https://askubuntu.com/questions/175514/how-to-set-java-home-for-java
export JAVA_HOME =/usr/lib/jvm/java-8-oracleexport PATH=$PATH:$JAVA_HOME/binexport JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Homeexport PATH=$PATH:$JAVA_HOME/bin
Installing zookeeper:
tar -zxvf zookeeper-3.4.10.tar.gzmv zookeeper-3.4.10/ zookeepercd zookeepermkdir datacp conf/zoo_sample.cfg conf/zoo.cfgbin/zkServer.sh start
Installing Storm:
configuring storm.yaml:
vim apache-storm/conf/storm.yamlstorm.zookeeper.servers:- "localhost"nimbus.seeds: ["localhost"]
Adding Storm path:
Add following line into .bashrc file
export PATH=$PATH:/home/storm_user/storm-pixel/apache-storm/bin
check storm commands after successful installation:
- storm version
- storm nimbus
- storm supervisor
- storm ui
Configuring streamparse:
Dependencies:
- lein
- storm
Install lein:
# refer http://leiningen.org/ cd /usr/bin wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein chmod +x lein run lein command. it will install packages to local lein version
No comments:
Post a Comment