meetup#4, apache spark as sql engine

15
Apache Spark as SQL Engine Data Engineering Approach Dmitry Timofeev, Data Analyst, Wrike Inc.

Upload: spbdatascience

Post on 09-Jan-2017

339 views

Category:

Data & Analytics


2 download

TRANSCRIPT

Page 1: Meetup#4, Apache Spark as SQL Engine

Apache Spark as SQL EngineData Engineering Approach

Dmitry Timofeev, Data Analyst, Wrike Inc.

Page 2: Meetup#4, Apache Spark as SQL Engine

Wrike is a collaborative task and project management platform

wrike.com

Page 3: Meetup#4, Apache Spark as SQL Engine

What is Apache Spark?

• Run programs up to 100x faster than Hadoop MapReduce in memory, or 10x faster on disk. • Write applications quickly in Java, Scala, Python, R. • Combine SQL, streaming, and complex analytics. • Spark runs on Hadoop, Mesos, standalone, or in the cloud. It can access diverse data

sources including HDFS, Cassandra, HBase, and S3.

Apache Spark™ is a fast in-memory and general engine for large-scale data processing.

Page 4: Meetup#4, Apache Spark as SQL Engine

Where it came from?Original white papers

• "Spark: Cluster Computing with Working Sets" by Matei Zaharia, Mosharaf Chowdhury, Michael J. Franklin, Scott Shenker, Ion Stoica. University of California, Berkeley

• "Resilient Distributed Datasets: A Fault-Tolerant Abstraction for In-Memory Cluster Computing" Matei Zaharia, Mosharaf Chowdhury, Tathagata Das, Ankur Dave, Justin Ma, Murphy McCauley, Michael J. Franklin, Scott Shenker, Ion Stoica. University of California, Berkeley

Page 5: Meetup#4, Apache Spark as SQL Engine

Few words about data analystsOr why they don’t want to write code and

want query, query, query?

• We know SQL • We love ETL

Page 6: Meetup#4, Apache Spark as SQL Engine

Spark SQLSpark SQL is Spark's module for working with structured data.

• DataFrame and seamlessly mix SQL queries with Spark programs;

• Connect to any data source the same way: Hive, Avro, Parquet, JSON and JDBC;

• Server mode: connect to Spark SQL with you favorite DB client over JDBC.

Page 7: Meetup#4, Apache Spark as SQL Engine

Spark SQLDistributed SQL Engine. Integration with BI tools

Page 8: Meetup#4, Apache Spark as SQL Engine

Spark SQLDistributed SQL Engine and my favorite DB tool

Page 9: Meetup#4, Apache Spark as SQL Engine

Spark SQLData sources

Page 10: Meetup#4, Apache Spark as SQL Engine

Spark SQLData sources

Page 11: Meetup#4, Apache Spark as SQL Engine

Spark SQLData sources

Page 12: Meetup#4, Apache Spark as SQL Engine

Spark SQLMix SQL queries with Spark programs

Page 13: Meetup#4, Apache Spark as SQL Engine

Where it came from?Original white papers

• "Spark SQL: Relational Data Processing in Spark" by Michael Armbrust, Reynold S. Xin, Cheng Lian, Yin Huai, Davies Liu, Joseph K. Bradley, Xiangrui Meng, Tomer Kaftan‡, Michael J. Franklin‡, Ali Ghodsi, Matei Zaharia. Databricks Inc. MIT CSAIL, AMPLab, UC Berkeley

Page 14: Meetup#4, Apache Spark as SQL Engine

Conclusion• You can easy crate scalable infrastructure; • Do you dream about cross-DB joins?

Welcome! • Do you want to join logs and usual DBs?

Welcome! • You analysts is not a programmers? Not a

problem!

Page 15: Meetup#4, Apache Spark as SQL Engine

Your questions?

To make our team more awesome we need: UX Data Analyst

Billing Operations Analyst Data Engineer

[email protected]