Git Product home page Git Product logo

pyspark-bitcoin-reddit's Introduction

Bitcoin Price and Reddit Comments Analysis Using PySpark

The Analysis

The relationship between the change in the number of reddit comments related to Bitcoin and the price of Bitcoin is the objective of the analysis.

The Tools

To perform this analysis, Spark cluster is used. Moreover, for easy contextualization of nodes, Docker is used.

Contextualize

Before actually contextualizing the Spark (and Hadoop) containers, make sure every machines are able to ssh to each other by configuring /etc/hosts, ~/.ssh/config, and ~/.ssh/authorized_keys. Additionally, Docker must be installed.

  1. Configure Spark and Hadoop by editing files inside config folder.

    • Specify the hostname or IP of spark master in spark-env.sh script.
    • Put the hostnames or IPs of workers in workers file.
  2. Clone this repository then cd into it and get in super user mode.

    $ git clone https://github.com/mjorrico/pyspark-bitcoin-reddit.git
    $ cd pyspark-bitcoin-reddit
    $ sudo bash
  3. Build the image.

    $ ./build.sh
  4. Run the master at one VM.

    Use the -f flag to format the namenode.

    $ ./start-master.sh [-f]
  5. Run the workers on multiple VMs.

    The -h flag must be provided. The value is the worker's hostname that's also present in /etc/hosts and workers files.

    $ ./start-worker.sh -h [workers_hostname]
  6. The cluster should be up and running.

    The Spark UI and HDFS GUI should be runnin on master on port 8080 and 9870 respectively

pyspark-bitcoin-reddit's People

Contributors

mjorrico avatar sepehrmhd97 avatar axdj 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.