Created on 06-21-2016 08:59 PM
This demo is inspired by Ali's Hortonworks Twitter Demo
Option 1: Setup demo using prebuilt VM based on HDP 2.3 sandbox
cd /root/hdp_nifi_twitter_demo ./start-demo.sh#once storm topology is submitted, press control-C #start Nifi processor 1. Using Browser, go to http://sandbox.hortonworks.com:<port#>/nifi
2. Upload the XML file into NiFi templates section in the UI. The XML file is under /root/hdp_nifi_twitter_demo/nifi-template
./reset-demo.sh
These setup steps are only needed first time and may take upto 30min to execute (depending on your internet connection)
git clone git@github.com:vedantja/hdp_nifi_twitter_demo.git
consumerKey
consumerSecret
oauth.accessToken
oauth.accessTokenSecret
cd /root/hdp22-twitter-demo
./setup-demo.sh
Run Twitter demoMost of the below steps are optional as they were already executed by the setup script above but are useful to understand the components of the demo:
/root/hdp_nifi_twitter_demo/fetchSecuritiesList/rungeneratecsv.sh
cat /root/hdp_nifi_twitter_demo/fetchSecuritiesList/securities.csv
sed -i '1i$HDP,Hortonworks,Technology,Technology,Santa Clara CA,0000000001,5' /root/hdp22-twitter-demo/fetchSecuritiesList/securities.csv
sed -i '1i#hadoopsummit,Hadoop Summit,Hadoop,Hadoop,Santa Clara CA,0000000001,5' /root/hdp22-twitter-demo/fetchSecuritiesList/securities.csv
/usr/hdp/current/phoenix-client/bin/sqlline.py localhost:2181:/hbase-unsecure
!tables
select * from securities;
select * from alerts;
select * from dictionary;
!q
hive -e 'desc tweets_text_partition'
cd /root/hdp_nifi_twitter_demo
./start-demo.sh
#once storm topology is submitted, press control-C
cd /root/hdp_nifi_twitter_demo/twitterstorm
./runtopology.sh runOnCluster clean
./runtopology.sh runLocally skipclean
storm kill Twittertopology
Repo Info