Big Data
Big Data
Prepared By:-
EduTechLearners 1
How much time did it take?
• Excel : Have you ever tried a pivot table on 500 MB file?
• SAS/R : Have you ever tried a frequency table on 2 GB file?
• Access: Have you ever tried running a query on 10 GB file
• SQL: Have you ever tried running a query on 50 GB file
2
Can you think of ?
• Can you think of running a query on 20,980,000 GB file.
• What if we get a new data set like this, every day?
• What if we need to execute complex queries on this data set
everyday ?
• Does anybody really deal with this type of data set?
• Is it possible to store and analyze this data?
• Yes Google deals with more than 20 PB data everyday
3
In fact, in a minute
• Email users send more than 204 million messages;
• Mobile Web receives 217 new users;
• Google receives over 2 million search queries;
• YouTube users upload 48 hours of new video;
• Facebook users share 684,000 bits of content;
• Twitter users send more than 100,000 tweets;
• Consumers spend $272,000 on Web shopping;
• Apple receives around 47,000 application downloads;
• Brands receive more than 34,000 Facebook 'likes';
• Tumblr blog owners publish 27,000 new posts;
• Instagram users share 3,600 new photos;
• Flickr users, on the other hand, add 3,125 new photos;
• Foursquare users perform 2,000 check-ins;
• WordPress users publish close to 350 new blog posts.
And this is one year back͙ .. Damn!!
4
What is BIG DATA?
Collection of data sets so large and complex that it becomes
difficult to process using on-hand database management tools
or traditional data processing applications
•Today, Face book ingests 500 terabytes of new data every day.
•Boeing 737 will generate 240 terabytes of flight data during a single
flight across the US.
• The smart phones, the data they create and consume; sensors
embedded into everyday objects will soon result in billions of new,
constantly-updated data feeds containing environmental, location,
and other information, including video.
7
2nd Character of Big Data
Velocity
Click streams and ad impressions capture user behavior at
millions of events per second
9
Handling bigdata-
Parallel computing
• Imagine a 1gb text file, all the status updates on Facebook in a day
• Now suppose that a simple counting of the number of rows takes
10 minutes.
• Select count(*) from fb_status
• What do you do if you have 6 months data, a file of size 200GB, if
you still want to find the results in 10 minutes?
• Parallel computing?
• Put multiple CPUs in a machine (100?)
• Write a code that will calculate 200 parallel counts and finally
sums up
• But you need a super computer
10
Handling bigdata - Is there a better
way?
• Till 1985, There is no way to connect multiple computers. All
systems were Centralized Systems.
• So multi-core system or super computers were the only options
for big data problems
• After 1985,We have powerful microprocessors and High Speed
Computer Networks (LANs , WANs), which lead to distributed
systems
11
MapReduce Programming Model
• Processing data using special map() and reduce() functions
• The map() function is called on every item in the input and
emits a series of intermediate key/value pairs(Local
calculation)
• All values associated with a given key are grouped together
• The reduce() function is called on every unique key, and its
value list, and emits a value that is added to the output(final
organization)
12
Not just MapReduce
• Earlier count=count+1 was sufficient but now, we need to
1. Setup a cluster of machines, then divide the whole data set into
blocks and store them in local machines
2. Assign a master node that takes charge of all meta data, work
scheduling and distribution, and job orchestration
3. Assign worker slots to execute map or reduce functions
4. Load Balance (What if one machine is very slow in the cluster?)
5. Fault Tolerance (What if the intermediate data is partially read,
but the machine fails before all reduce(collation) operations
can complete?)
6. Finally write the map reduce code that solves our problem
13
Ok. Analysis on bigdata can give us awesome insights.
14
Hadoop
• Hadoop is a bunch of tools, it has many components. HDFS
and MapReduce are two core components of Hadoop
• HDFS: Hadoop Distributed File System
• makes our job easy to store the data on commodity hardware
• Built to expect hardware failures
• Intended for large files & batch inserts
• MapReduce
• For parallel processing
15
Why Hadoop is useful
• Scalable: It can reliably store and process petabytes.
• Economical: It distributes the data and processing across
clusters of commonly available computers (in thousands).
• Efficient: By distributing the data, it can process it in parallel
on the nodes where the data is located.
• Reliable: It automatically maintains multiple copies of data
and automatically redeploys computing tasks based on
failures.
• And Hadoop is free
16
So what is Hadoop?
• Hadoop is not Bigdata
• Hadoop is not a database
• Hadoop is a platform/framework
• Which allows the user to quickly write and test distributed
systems
• Which is efficient in automatically distributing the data
and work across machines
17
Hadoop ecosystem
18
Big Data ecosystem
28
19
Big Data Analytics
20
Types of tools used in
Big-Data
Where processing is hosted?
• Distributed Servers / Cloud (e.g. Amazon EC2)
Where data is stored?
• Distributed Storage (e.g. Amazon S3)
What is the programming model?
• Distributed Processing (e.g. MapReduce)
How data is stored & indexed?
• High-performance schema-free databases (e.g. MongoDB)
What operations are performed on data?
• Analytic / Semantic Processing
21
Application Of Big Data analytics
Smarter Multi-channel
Healthcare sales
Homeland Telecom
Security
Trading
Traffic Analytics
Control
Search
Manufacturing Quality
22
Risks of Big Data
• Will be so overwhelmed
• Need the right people and solve the right problems
23
Benefits of Big Data
Our newest research finds that organizations are using big data to
target customer-centric outcomes, tap into internal data and build a
better information ecosystem.
Big Data is already an important part of the $64 billion database and
data analytics market
And the Internet boom of the 1990s, and the social media explosion
of today.
24
www.edutechlearners.com
25