https://github.com/xmlking/storm-playground
Apache Storm / Trident examples in Groovy and Java
https://github.com/xmlking/storm-playground
Last synced: 6 months ago
JSON representation
Apache Storm / Trident examples in Groovy and Java
- Host: GitHub
- URL: https://github.com/xmlking/storm-playground
- Owner: xmlking
- Created: 2015-02-21T20:27:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-21T20:54:58.000Z (about 11 years ago)
- Last Synced: 2025-03-25T06:28:03.925Z (about 1 year ago)
- Language: Groovy
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Storm Playground
=========
### Getting Started
```bash
# Install GVM
curl -s get.gvmtool.net | bash
# Install gradle with GVM
gvm install gradle
```
### Open project with Intellij IDEA
`File` -> `Open...` and browse to `build.gradle` file.
### Running Examples
```bash
gradle example1
gradle example2
gradle example3
gradle example4
```
#### Example #5
You need to set two environment variables to use the Twitter Streaming API:
```bash
$ export TWITTER_USERNAME="your username"
$ export TWITTER_PASSWORD="your password"
# or set twitter credentials in build.gradle
$ gradle example5 -Pargs='--name local --filter #xmlking'
```
You will need to create a simple Twitter app [here](https://dev.twitter.com/) and insert your own auth values in [twitter4j.properties](/src/main/resources/twitter4j.properties).
This is necessary to consume the public stream or perform any other twitter-specific operations.
### Ref
https://github.com/yrro/stormygroove/tree/master/src/main/groovy