Git Product home page Git Product logo

trace_twitter_tending's Introduction

Trace_Twitter_Tending

Python real time big data processing. This is readme.txt for jiajun Zhou 215231517 & Xianzun Meng 215183858

For Part A: Our file for part A are atwitter.py, aspark.py, agraph.py, aresult.txt and aplot.png put them under your project folder.

1: lunch two docker. first one: docker run -it -v $PWD:/app --name twitter -w /app python bash

second one : docker run -it -v $PWD:/app --link twitter:twitter your twitter image

in twitter image, on bash run: python3 atwitter.py in spark image, on bash run: spark-submit aspark.py in your operating system's terminal at your project folder, run: python3 agraph.py

atwitter will get all suitable Twitter and send them to spark through the port. aspark will deal with the input stream and get results to file aresult.txt. agraph will read aresult.txt and give dynamic result plots saved as aplot.png

For Part B: Our file for part B are btwitter.py, bspark.py, bplot.py, bresult.txt put them under your project folder. 1: lunch two docker. first one: docker run -it -v $PWD:/app --name twitter -w /app python bash

second one : docker run -it -v $PWD:/app --link twitter:twitter your twitter image

in twitter image, on bash run: python3 btwitter.py in eecs4415 image, on bash run: spark-submit bspark.py in your operating system's terminal at your project folder, run: python3 bplot.py you will see the plot on the terminal.

#end of readme

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.