Getting Started with Apache Cassandra and Apache Zeppelin (DuyHai DOAN, DataStax) | C* Summit 2016

23
Getting started with Apache Cassandra and Apache Zeppelin DuyHai DOAN – Apache Cassandra evangelist

Transcript of Getting Started with Apache Cassandra and Apache Zeppelin (DuyHai DOAN, DataStax) | C* Summit 2016

Getting started with Apache Cassandra and Apache Zeppelin DuyHai DOAN – Apache Cassandra evangelist

1 Apache Zeppelin (quick) introduction

2 Cassandra interpreter

3 Advanced usage

4 Dynamic forms

5 Zeppelin with Spark/Cassandra connector

2 © DataStax, All Rights Reserved.

Apache Zeppelin (quick) intro

What is Apache Zeppelin ?

© DataStax, All Rights Reserved. 4

© DataStax, All Rights Reserved. 5

Demo

Zeppelin architecture

© DataStax, All Rights Reserved. 6

Zeppelin Server

Zeppelin Engine

REST

Web

Sock

et

Spark Interpreter Group

Spark SparkSQL

Zeppelin Interpreter

Factory

Tajo Interpreter

Flink Interpreter

Cassandra Interpreter

JVM

JVM

JVM

JVM

JVM

Cassandra interpreter

Cassandra interpreter architecture

© DataStax, All Rights Reserved. 8

Cassandra Interpreter

JVM

DisplayResults as

HTML

① ②

Zeppelin Server

JVM

RawTextBlock

RawTextBlock

Cassandra Cassandra

Java Driver

Async CQLstatements

④ RenderHTML

© DataStax, All Rights Reserved. 9

Demo

Advanced Usage

© DataStax, All Rights Reserved. 11

Demo

Dynamic Forms

© DataStax, All Rights Reserved. 13

Demo

Zeppelin with Spark/Cassandra connector

Configuration matrix

•  Vanilla Zeppelin + OSS Spark•  Vanilla Zeppelin + Datastax Enterprise (DSE)•  Pre-built Zeppelin + OSS Spark•  Pre-built Zeppelin + Datastax Enterprise (DSE)

© DataStax, All Rights Reserved. 15

Vanilla Zeppelin + OSS Spark

First add Spark/Cassandra connector as dependency for Spark interpreter in Zeppelin

© DataStax, All Rights Reserved. 16

Vanilla Zeppelin + OSS Spark

Then configure Spark to include the connector dependencies: $SPARK_HOME/conf/spark-env.shEither

Or

© DataStax, All Rights Reserved. 17

Vanilla Zeppelin + DSE

Only need to add Spark/Cassandra connector as dependency for Spark interpreter in Zeppelin

© DataStax, All Rights Reserved. 18

Pre-built Zeppelin + OSS Spark

Only need to configure Spark to include the connector dependencies: $SPARK_HOME/conf/spark-env.shEither

Or

© DataStax, All Rights Reserved. 19

Pre-built Zeppelin + DSE

Nothing to do …

© DataStax, All Rights Reserved. 20

Where to get pre-built Zeppelin ? http://goo.gl/8S4Vv6

© DataStax, All Rights Reserved. 21

© DataStax, All Rights Reserved. 22

Q & A

! "

© DataStax, All Rights Reserved. 23

Thank You @doanduyhai

[email protected]

https://academy.datastax.com/