Giter VIP home page Giter VIP logo

spark-after-dark's Introduction

Installation

  • Please clone this repo to your home directory so that /data is accessible as follows:
    • ~/spark-after-dark/data

Running

  • Please run you spark-shell command from your home directory so that data files will be accessible from within your Spark application code as follows (relative to your current/home directory):
    • sc.textFile("spark-after-dark/data/ratings.csv.gz")
  • All code can be copy/pasted into the spark-shell from ~/spark-after-dark/src/scala/...

Datasets

  • http://www.occamslab.com/petricek/data/
  • ratings.csv (FromUserID,ToUserID,Rating)
    • FromUserID is user who provided rating
    • ToUserID is user who has been rated
    • FromUserIDs range between 1 and 135,359
    • ToUserIDs range between 1 and 220,970 (not every profile has been rated)
    • Ratings are on a 1-10 scale where 10 is best (integer ratings only)
    • Only users who provided at least 20 ratings were included
    • Users who provided constant ratings were excluded
  • gender.csv (UserID,Gender)
    • Gender is denoted by a "M" for male and "F" for female and "U" for unknown

Examples

  • SQL: Using SQL and Parquet to query descriptive summary statistics on the datasets
  • Core: RDD basics and joins
  • GraphX: Using PageRank to determine top most-desirable users
  • MLlib: Using Alternating Least Squares (ALS) to recommend new users

Presentations

  • Spark After Dark: pdf/SparkAfterDark.pdf

spark-after-dark's People

Contributors

cfregly avatar

Watchers

Austin Ouyang avatar  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.