Getting Started with Big Data in the Cloud

26
alk with the Experts. Getting Started with Big Data in the Cloud Vijay Tolani Sr. Sales Engineer

Transcript of Getting Started with Big Data in the Cloud

Page 1: Getting Started with Big Data in the Cloud

Talk with the Experts.

Getting Started with Big Data in the Cloud

Vijay Tolani

Sr. Sales Engineer

Page 2: Getting Started with Big Data in the Cloud

# 2# 2

Talk with the Experts.

Agenda• What is Big Data and Why is it a Good Fit for the Cloud?

• Use Cases for running Big Data in the Cloud• Storing Large Data Sets and Unstructured Data• Data Analytics using Hadoop

• RightScale Ecosystem Solutions• NoSQL• Hadoop Analytics

• How I learned to Use Hadoop in the Cloud

Page 3: Getting Started with Big Data in the Cloud

# 3# 3

Talk with the Experts.

What is Big Data?

“Big data is data that exceeds the processing capacity of conventional database systems. The data is too big, moves too fast, or doesn't fit the strictures of your database architectures. To gain value from this data, you must choose an alternative way to process it.”

- O’Reilly

Page 4: Getting Started with Big Data in the Cloud

# 4# 4

Talk with the Experts.

Why is Big Data a Good Fit for the Cloud?

4

What insight could you gain if you had

full use of a 100-node cluster

We don’t have resources to do

anything like that

What if one hour of this 100-node cluster

would cost $34?

Page 5: Getting Started with Big Data in the Cloud

# 5# 5

Talk with the Experts.

Relational Databases…since 1970Data is stored in Tables

Data is accessed via SQL Queries

Page 6: Getting Started with Big Data in the Cloud

# 6# 6

Talk with the Experts.

Now Let Me Tell You a Story

Page 7: Getting Started with Big Data in the Cloud

# 7# 7

Talk with the Experts.

Draw Something Goes Viral

191715131197533/12826242220181614121082/6

Daily Active Users (millions)

21

2

4

6

8

10

12

14

16

Page 8: Getting Started with Big Data in the Cloud

# 8# 8

Talk with the Experts.

As Usage Grew, So Did Game Data

191715131197533/12826242220181614121082/6

Daily Active Users (millions)

21

2

4

6

8

10

12

14

16

By March 29, there were over 30,000,000 downloads of the app,

over 5,000 drawings being stored per second,over 2,200,000,000 drawings stored,

over 105,000 database transactions per second,and over 3.3 terabytes of data stored.

Page 9: Getting Started with Big Data in the Cloud

# 9# 9

Talk with the Experts.

This Isn’t The Only ExampleFood for Thought:

• Facebook is expected to have more than 1 billion users by August 2012, handles 40 billion photos, and generates 10 TB of log data per day.

• Twitter has more than 100 million users and generates some 7 TB of tweet data per day.

• For every trading session, the NYSE captures 1 TB of trade information.

Conventional Data Warehouses and SQL Databases do not meet the demands of many of today’s applications with 3 key metrics:

• Volume• Variety• Velocity

Page 10: Getting Started with Big Data in the Cloud

# 10# 10

Talk with the Experts.

Storing Large Data Sets in the Cloud

• “I want to use Hadoop, but I’m out of capacity in my current Data Warehouse.”

• If you can’t store the data, you can’t analyze the data.

• Many customers are choosing to begin their Big Data projects by implementing NoSQL databases to store large volumes of data in a variety of formats (Structured, Unstructured, & Semi-Structured)

Page 11: Getting Started with Big Data in the Cloud

# 11# 11

Talk with the Experts.

What is NoSQL?• Highly Scalable, Distributed, & Fault Tolerant

• Designed for use on Commodity Hardware.

• Does NOT use SQL

• Do NOT Guarantee Immediate Consistency

Ideal Use Cases for NoSQL Databases when the following criteria is met:

• Simple Data Models are used.• Flexibility is more important than strict control over defined Data

Structures.• High Performance is a must.• Strict Data Consistency is not required.

Page 12: Getting Started with Big Data in the Cloud

# 12# 12

Talk with the Experts.

Types of NoSQL DatabasesKey-Value Store

Document Database

Column Oriented Database

Page 13: Getting Started with Big Data in the Cloud

# 13# 13

Talk with the Experts.

MapReduce

MapReduce paradigm consists of three steps:

1. Mapper function or script that goes through your input data and outputs a series of keys and values.

2. Sort the unordered list of keys and to ensure all the fragments that have the same key are next to one another in the file.

3. The reducer stage then goes through the sorted output and receives all of the values that have the same key in a contiguous block.

Page 14: Getting Started with Big Data in the Cloud

# 14# 14

Talk with the Experts.

Hadoop Architecture

Page 15: Getting Started with Big Data in the Cloud

# 15# 15

Talk with the Experts.

Hadoop Concepts

Page 16: Getting Started with Big Data in the Cloud

# 16# 16

Talk with the Experts.

Interacting with HadoopHive

• Program hadoop jobs using SQL. • Caution: Because of Hadoop’s focus on large-scale processing, the latency may mean

that even simple jobs take minutes to complete, so it’s not a substitute for a real-time transactional database.

Pig

• Procedural data processing language designed for Hadoop where you specify a series of steps to perform on the data.

• Often described as “the duct tape of Big Data” for its usefulness there, and it is often combined with custom streaming code written in a scripting language for more general operations.

Page 17: Getting Started with Big Data in the Cloud

# 17# 17

Talk with the Experts.

Key-Value Stores• Use a hash table where there is a unique key and a pointer to a

particular item of data.

• Typical Application: Content Caching

• Example: Redis

Page 18: Getting Started with Big Data in the Cloud

# 18# 18

Talk with the Experts.

Document Databases• Document databases are essentially the next level of Key-Value

stores, allowing nested values associated with each key.• The semi-structured documents are stored in formats such as

JSON.

• Typical Applications: Web Apps

• MongoDB and Couchbase Hadoop Connectors

• Example: Couchbase, MongoDB

Page 19: Getting Started with Big Data in the Cloud

# 19# 19

Talk with the Experts.

MongoDB Hadoop Integration

Built in MapReduce• Built in MapReduce (JavaScript Only)• Limited Scalability • One JavaScript Implementation at a Time

Hadoop Connector• Integrating MongoDB and Hadoop to Read/Write data to/from MongoDB

via Hadoop

Page 20: Getting Started with Big Data in the Cloud

# 20# 20

Talk with the Experts.

Column Oriented Database• Store and process very large amounts of data distributed over

many machines. There are still keys but they point to multiple columns.

• Typical Application: Distributed File Systems

• Native Hadoop Integration for Hbase and Cassandra

• Example: Cassandra, HBase

Page 21: Getting Started with Big Data in the Cloud

# 21# 21

Talk with the Experts.

Cassandra Hadoop Integration

• Native Support for Apache Pig and Apache Hive• Cassandra's Hadoop support implements the same interface as HDFS to achieve input data locality

• One thing Cassandra can’t do well yet is MapReduce. • MapReduce and related systems such as Pig and Hive work well with HBase because it uses hadoop

HDFS to store its data.

Page 22: Getting Started with Big Data in the Cloud

# 22# 22

Talk with the Experts.

My Approach to Learning about using Hadoop in the Cloud… courtesy of IBM

• Learn It• Big Data University

• Try It• BigInsights Basic, Available for Free in the MultiCloud MarketPlace

• Buy It• BigInsights Enterprise for Advanced Functionality

Page 23: Getting Started with Big Data in the Cloud

# 23# 23

Talk with the Experts.

How I Learned to use Hadoop in the Cloud

• Hadoop Fundamentals• Hadoop Architecture, MapReduce, and HDFS• Using Pig and Hive

• Using BigInsights in the Cloud with RightScale• The Best Part – It’s Free!!• http://www.bigdatauniversity.com/

Page 24: Getting Started with Big Data in the Cloud

# 24# 24

Talk with the Experts.

• Available in the MultiCloud MarketPlace

• Free for Data Sets up to 10 TB

BigInsights Basic – Get Started for Free

Page 25: Getting Started with Big Data in the Cloud

# 25# 25

Talk with the Experts.

BigInsights Enterprise

Page 26: Getting Started with Big Data in the Cloud

Talk with the Experts.

Questions?