2017-11-21 01:44:51 -05:00
|
|
|
# Git spring-cloud-stream-app-starters
|
2017-11-22 19:54:45 -05:00
|
|
|
# https://github.com/spring-cloud-stream-app-starters/hdfs/blob/master/spring-cloud-starter-stream-sink-hdfs/README.adoc
|
|
|
|
git clone https://github.com/spring-cloud-stream-app-starters/twitter.git
|
2017-11-21 01:44:51 -05:00
|
|
|
|
2017-11-22 19:54:45 -05:00
|
|
|
# Build it
|
|
|
|
./mvnw clean install -PgenerateApps
|
2017-11-21 01:44:51 -05:00
|
|
|
|
2018-01-15 00:01:38 -05:00
|
|
|
# Run it
|
2018-01-28 08:11:10 -05:00
|
|
|
cd target
|
2017-11-22 19:54:45 -05:00
|
|
|
# Optionally inject application.properties prior to build
|
|
|
|
java -jar twitter_stream_source.jar --consumerKey=<CONSUMER_KEY> --consumerSecret=<CONSUMER_SECRET> \
|
|
|
|
--accessToken=<ACCESS_TOKEN> --accessTokenSecret=<ACCESS_TOKEN_SECRET>
|