Big Data Research in the AMPLab: BDAS and Beyond

25
Big Data Research in the AMPLab: BDAS and Beyond UC BERKELEY Michael Franklin UC Berkeley 1 st Spark Summit December 2, 2013

description

Big Data Research in the AMPLab: BDAS and Beyond. Michael Franklin U C Berkeley 1 st Spark Summit December 2, 2013. UC BERKELEY. Launched: January 2011, 6 year planned duration Personnel: ~60 Students, Postdocs, Faculty and Staff - PowerPoint PPT Presentation

Transcript of Big Data Research in the AMPLab: BDAS and Beyond

Page 1: Big Data Research in the AMPLab: BDAS and Beyond

Big Data Research in the AMPLab:

BDAS and Beyond

UC BERKELEY

Michael Franklin UC Berkeley

1st Spark SummitDecember 2, 2013

Page 2: Big Data Research in the AMPLab: BDAS and Beyond

AMPLab: Collaborative Big Data Research

UC BERKELEYLaunched: January 2011, 6 year planned durationPersonnel: ~60 Students, Postdocs, Faculty and StaffExpertise: Systems, Networking, Databases and Machine LearningIn-House Apps: Crowdsourcing, Mobile Sensing, Cancer Genomics

Page 3: Big Data Research in the AMPLab: BDAS and Beyond

AMPLab: Integrating Diverse Resources

Algorithms

• Machine Learning, Statistical Methods

• Prediction, Business Intelligence

Machines

• Clusters and Clouds• Warehouse Scale Computing

People

• Crowdsourcing, Human Computation

• Data Scientists, Analysts

Page 4: Big Data Research in the AMPLab: BDAS and Beyond

Big Data Landscape – Our Corner

4

Page 5: Big Data Research in the AMPLab: BDAS and Beyond

Apache Spark

Spark Streaming

Berkeley Data Analytics Stack

Shark (SQL)

HDFS / Hadoop Storage

Apache Mesos

BlinkDB GraphX MLBase

YARN Resource Manager

Tachyon

ML-lib

AMPAlpha or

SoonAMP

ReleasedBSD/

Apache3rd Party

Open Source

Page 6: Big Data Research in the AMPLab: BDAS and Beyond

6

Time

AnswerQualityMoney

Massive Diverse

and Growing

Data

Our View of the Big Data ChallengeSomething’sgotta give…

Massive Diverse

and Growing

Data

Page 7: Big Data Research in the AMPLab: BDAS and Beyond

Speed/Accuracy Trade-off

Execution Time

Erro

r

30 mins

Time to Execute on

Entire Dataset

InteractiveQueries

5 sec

Page 8: Big Data Research in the AMPLab: BDAS and Beyond

Execution Time

Erro

r

30 mins

Time to Execute on

Entire Dataset

InteractiveQueries

5 sec

Speed/Accuracy Trade-off

Pre-ExistingNoise

Page 9: Big Data Research in the AMPLab: BDAS and Beyond

A data analysis (warehouse) system that … - builds on Shark and Spark- returns fast, approximate answers with

error bars by executing queries on small samples of data

- is compatible with Apache Hive (storage, serdes, UDFs, types, metadata) and supports Hive’s SQL-like query structure with minor modifications

Agarwal et al., BlinkDB: Queries with Bounded Errors and Bounded Response Times on Very Large Data. ACM EuroSys 2013, Best Paper Award

Page 10: Big Data Research in the AMPLab: BDAS and Beyond

Sampling Vs. No Sampling

0100200300400500600700800900

1000

1 10-1 10-2 10-3 10-4 10-5

Fraction of full data

Que

ry R

espo

nse

Tim

e (S

econ

ds)

103

1020

18 13 10 8

10x as response timeis dominated by I/O

Page 11: Big Data Research in the AMPLab: BDAS and Beyond

Sampling Vs. No Sampling

0100200300400500600700800900

1000

1 10-1 10-2 10-3 10-4 10-5

Fraction of full data

Que

ry R

espo

nse

Tim

e (S

econ

ds)

103

1020

18 13 10 8

(0.02%)(0.07%) (1.1%) (3.4%) (11%)

Error Bars

Page 12: Big Data Research in the AMPLab: BDAS and Beyond

People Resources

12

Hybrid Human-Machine Computation

• Data Cleaning• Active Learning• Handling the last 5%

Franklin et al., CrowdDB: Answering Queries with Crowdsourcing, SIGMOD 2011Wang et al., CrowdER: Crowdsourcing Entity Resolution, VLDB 2012Trushkowsky et al., Crowdsourcing Enumeration Queries, ICDE 2013 Best Paper Award

Supporting Data Scientists

• Interactive Analytics• Visual Analytics• Collaboration

Page 13: Big Data Research in the AMPLab: BDAS and Beyond

Less is More? Data Cleaning +

Sampling

J. Wang et al., Work in Progress

Page 14: Big Data Research in the AMPLab: BDAS and Beyond

Working with the Crowd

14

IncentivesFatigue, Fraud, & other Failure ModesLatency & PredictionWork ConditionsInterface Impacts Answer QualityTask StructuringTask Routing

Page 15: Big Data Research in the AMPLab: BDAS and Beyond

The 3E’s of Big Data:Extreme Elasticity EverywhereAlgorith

ms

• Approximate Answers• ML Libraries and Ensemble Methods• Active Learning

Machines

• Cloud Computing – esp. Spot Instances• Multi-tenancy• Relaxed (eventual) consistency/ Multi-version

methods

People

• Dynamic Task and Microtask Marketplaces• Visual analytics• Manipulative interfaces and mixed mode

operation

Page 16: Big Data Research in the AMPLab: BDAS and Beyond

AMP Integration +Extreme Elasticity +

Tradeoffs +More Sophisticated Analytics= Extreme Complexity

The Research Challenge

Page 17: Big Data Research in the AMPLab: BDAS and Beyond

Can we Take a Declarative Approach?

SQL Result MQL Model

✦ Can reduce complexity through automation✦ End Users tell the system what they want, not how to get it

Page 18: Big Data Research in the AMPLab: BDAS and Beyond

1. Easy scalable ML development (ML Developers)2. Easy/user-friendly ML at scale (End Users)

Along the way, we gain insight into data intensive computing

Goals of MLbaseML Insights Systems InsightsMLbase

Page 19: Big Data Research in the AMPLab: BDAS and Beyond

var X = load(”als_clinical”, 2 to 10)var y = load(”als_clinical”, 1)var (fn-model, summary) = doClassify(X, y)

Example: Supervised Classification

Algorithm Independent

✦ End Users tell the system what they want, not how to get it

A Declarative Approach

Page 20: Big Data Research in the AMPLab: BDAS and Beyond

MLBase – Query Compilation

20

Page 21: Big Data Research in the AMPLab: BDAS and Beyond

Query Optimizer: A Search Problem

5min

Boosting

SVM

✦ System is responsible for searching through model space

✦ Opportunities for physical optimization

Page 22: Big Data Research in the AMPLab: BDAS and Beyond

Query Planner / Optimizer

RuntimeML Developer API

ML Library

MQL Parser

(Contracts)

ReleasedJuly 2013

initialrelease:Spring2014

MLbase: Progress

Page 23: Big Data Research in the AMPLab: BDAS and Beyond

Other Things We’re Working On• GraphX: Unifying Graph Parallel & Data Parallel

Analytics

• OLTP and Serving Workloads• MDCC: Mutli Data Center Consistency• HAT: Highly-Available Transactions• PBS: Probabilistically Bounded Staleness• PLANET: Predictive Latency-Aware Networked Transactions

• Fast Matrix Manipulation Libraries• Cold Storage, Partitioning, Distributed

Caching• Machine Learning Pipelines, GPUs, • …

Page 24: Big Data Research in the AMPLab: BDAS and Beyond

It’s Been a Busy 3 Years

Page 25: Big Data Research in the AMPLab: BDAS and Beyond

Be Sure to Join us for the Next 3

amplab.cs.berkeley.edu

@amplab

UC BERKELEY