io.snappydata.examples
Run this on your local machine:
$ sbin/snappy-start-all.sh
To run with live twitter streaming, export twitter credentials
$ export APP_PROPS="consumerKey=<consumerKey>,consumerSecret=<consumerSecret>, \ accessToken=<accessToken>,accessTokenSecret=<accessTokenSecret>"
$ ./bin/snappy-job.sh submit --lead localhost:8090 \ --app-name TwitterPopularTagsJob --class io.snappydata.examples.TwitterPopularTagsJob \ --app-jar $SNAPPY_HOME/examples/jars/quickstart.jar --stream
To run with stored twitter data, run simulateTwitterStream after the Job is submitted:
$ ./quickstart/scripts/simulateTwitterStream
Run this on your local machine:
$ sbin/snappy-start-all.sh
To run with live twitter streaming, export twitter credentials
$ export APP_PROPS="consumerKey=<consumerKey>,consumerSecret=<consumerSecret>, \ accessToken=<accessToken>,accessTokenSecret=<accessTokenSecret>"
$ ./bin/snappy-job.sh submit --lead localhost:8090 \ --app-name TwitterPopularTagsJob --class io.snappydata.examples.TwitterPopularTagsJob \ --app-jar $SNAPPY_HOME/examples/jars/quickstart.jar --stream
To run with stored twitter data, run simulateTwitterStream after the Job is submitted:
$ ./quickstart/scripts/simulateTwitterStream