GithubHelp home page GithubHelp logo

hotsen / kafka-twitter-relatedwords Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heroku/kafka-twitter-relatedwords

0.0 2.0 0.0 16 KB

Part of a data processing pipeline example using Apache Kafka on Heroku

Home Page: https://heroku.github.io/kafka-demo

JavaScript 100.00%

kafka-twitter-relatedwords's Introduction

kafka-twitter-relatedwords

This app is one component of a data processing pipeline example using Apache Kafka on Heroku. See the Getting Started Guide for more details.

Running Locally

Make sure you have Node.js > 5.x, Heroku CLI installed, and an Apache Kafka on Heroku cluster running.

You'll also need to copy .env.sample to .env and provide values for all of the environment variables listed.

  • KAFKA_URL: Comma-separated list of Kafka broker URLs
  • KAFKA_CLIENT_CERT: Contents of the Kafka client certificate. This is set on a Heroku app when the Apache Kafka on Heroku add-on is attached.
  • KAFKA_CLIENT_CERT_KEY: Contents of the Kafka client certificate key. This is set on a Heroku app when the Apache Kafka on Heroku add-on is attached.
  • KAFKA_CONSUMER_TOPIC: Kafka topic name from which to consume messages.

And you'll need to update Procfile to include one process per keyword being tracked.

git clone [email protected]:heroku/kafka-twitter-relatedwords.git # or clone your own fork
cd kafka-twitter-relatedwords
npm install
heroku local

Your app should now be running on localhost:5000.

Deploying to Heroku

heroku create
heroku addons:attach my-kafka-app::KAFKA
# where my-kafka-app is the original app the kafka cluster was attached to

heorku config:set KAFKA_CONSUMER_TOPIC= # Kafka topic from which to consume messages

git push heroku master

After the deploy is successful, scale up each process to 1. Scale the web process to zero. You can do this from either the CLI (e.g. heroku ps:scale dog=1) or the Heroku dashboard.

Documentation

For more information about using Apache Kafka on Heroku, see these resources:

kafka-twitter-relatedwords's People

Watchers

Alexander hoth avatar James Cloos 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.