Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

BIG DATA SYSTEMS ASSIGNMENT 2 Title: Selection of suitable Hadoop Eco System platform for sales data analytics Overview & background: An e - Commerce company

BIG DATA SYSTEMS ASSIGNMENT 2
Title:
Selection of suitable Hadoop Eco System platform for sales data analytics
Overview & background:
An e-Commerce company in Europe is analyzing the online retail sales data of 2010 to
formulate the sales strategy for 2011. The name of the sales data file is Assignment2-
2024-BDS-DATASET-online_retail_dat.csv". This file contains header and 480232 data
records.
The analytics team consists of developers with expertise on different Hadoop
frameworks/platforms like MapReduce, Pig Latin, Hive, HBase and Spark. The technical
manager is confused about the appropriate framework to be used in the analytics
project. The only concern of the manager is that the time taken for execution of the
analytics queries should be minimum. In this assignment, you need to implement 2
typical analytics queries in any two of the platforms and do a performance comparison
between them and recommend the framework/platform which gives better performance.
The scripts/code/queries developed by you on both the platforms, the timing values and
the query results are to be submitted for each of the queries mentioned in section 3.
Also, you need to submit the UUIDs of computers on which you have done the
performance tests.
Input: CSV data with flat schema with multiple records and features.
Description:
1. STORAGE:
The data file should be copied to the local file system of any node in your
Hadoop cluster. This data file is to be moved to HDFS of the Hadoop cluster
by configuring and running a suitable Flume agent. The block size of the file
should be selected for optimum performance. A suitable value for the
replication factor of the file should be selected to ensure reliable storage of
the data file.
2. METADATA
The data consists of RecordNo, InvoiceNo, StockCode, Description, Quantity,
InvoiceDate, Price, CustomerID, and Country. Some of the fields in the data
may be blank. If required, you are allowed to remove the first header record
containing the schema definition. Or this record may be skipped during reading
and or analysis. No other modifications are allowed to the contents of the file.
Big Data Systems Assignment 22
3. ANALYTIC QUERIES FOR BENCH MARKING:
1. Total revenue (Aggregation of Price) received in the year 2010.
2. List of unique items sold (With same StockCode) and their total sales
volume (Aggregation of Quantity) in the year 2010 sorted in ascending
order of StockCode.
4. FRAMEWORKS / PLATFORMS TO BE COMPARED:
1. Hadoop group
a. Hadoop MapReduce
b. Pig Latin Scripts
c. Apache HIVE
d. Apache HBASE
2. Spark group
a. Spark MapReduce
b. Spark Dataframes
c. Spark Datasets
d. SparkSQL
5. GUIDELINES FOR PERFORMANCE COMPARISON:
1. You need to select one framework from Hadoop group and the second
framework from the Spark group given in Section 4 above. It is NOT allowed to
select two frameworks from the same group. In this assignment, you need to
do a query performance comparison between the two frameworks selected by
you. Two queries to be used for performance evaluation are given in Section 3
Analytics queries for benchmarking.
2. If you are using Linux, you can time command to time your command. For
Windows, you need to find out a method to determine the time taken for
execution of each of the queries. Sometimes, the time taken for execution of a
query can be less than 1 second and you may not be able to measure time in
millisecond range. You have the following 2 options to overcome this problem:
a. Repeat the query multiple times, say 10 to 100 and determine the total
time taken.Then find out the time taken for executing individual queries.
b. Almost all the platforms mentioned above allow you to specify a folder in
HDFS as input. You may copy multiple copies of the same data file into
the input folder (of course with different file names) and execute the
query. Then find out the query time by dividing the total time by the
number of copies of the file.
Big Data Systems Assignment 23
6. CONDITIONS
1. Since this is a group assignment involving comparison of performance on
2 different frameworks, one student should work on 1 platform and other
student(s) should work on the second platform. The group leader needs to
consolidate the results and submit the assignment.
2. You should use Apache Flume to move data from the local file system to
HDFS. If data is moved with the Hadoop put command, marks will be
reduced.
3. The Hadoop cluster should be configured on Linux / Windows systems.
4. If only one system is available, you need to configure the cluster in
pseudo distributed mode.
5. The Replication factor for the HDFS files should be set as the number of
nodes in the cluster.
6. Focus on performance tuning of the framework by selecting proper
configuration parameters instead of accuracy of the query results.
7. SUBMISSION REQUIREMENTS
Your submission

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago