Giter VIP home page Giter VIP logo

pluralsight-kinesis's Introduction

pluralsight-kinesis

Java app from Pluralsight course to get streaming tweets used with AWS Kinesis

Notes

Part I: Steps to create app on Twitter

  1. Go to Twitter Development Platform: https://developer.twitter.com/content/developer-twitter/en.html
  2. Log into the website
  3. Click on Apps > Create an App
  4. Complete the following THEN add the 4 keys to the app:
  • app name
  • website url: http://www.example.com
  • enable sign-in with twitter
  • callback url: http://www.example.com
  • app usage: brief description
  • go to tab - permissions: select: Read and Write
  • go to tab - keys and tokens: generate 4 keys: Consumer API keys (2), Access token & access token secret (2)

Part II: Run the Java app to stream tweet

*Currently, when this app is run some tweets stream but there are intermittent errors: JSONObject["text"] not found.

Part III: Kinesis Connect

I. AWS Set-up - permissions

  1. AWS - create account
  2. IAM (identity and access management) > Users > User name = kinesis-user
  3. AWS Access type = Programmatic access [next permissions]
  4. Attach exisiting policies directly > search for Kinesis and add
  • AmazonKinesisAnalyticsFullAccess
  • AmazonKinesisFirehoseFullAccess
  • AmazonKinesisFullAccess
  • AWSLambbdaKinesisExecutionRole
  • CloudWatchFullAccess
  • AmazonDynamoDBFullAccess

II. Create Kinesis

  1. Kinesis > Create Kinesis stresm: tweet-stream
  2. Number of shards 1
  3. Run Java Kinesis-connect branch
  • See Tweets consumed after adding below - run TwitterProducerMain then run TwitterConsumerMain
  • TweetsProcessor
  • TweetsProcessorFactory
  • TwitterConsumerMain
  • TwitterProducerMain

Part IV. Implementing Advanced Kinesis Consumers

  1. Kinesis Connector Library
  2. Creating a Pipeline with Kinesis

*Create AWS S3 bucket with name "pluralsight-kinesis-course" *Run ConnectorsMain.java *In AWS - go into buckets and see a file - select checkbox and download - inspect file

pluralsight-kinesis's People

Contributors

claudia100 avatar hillc255 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.