• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 41 pages
Other

Big Data Coursework

Document preview thumbnail
Preview 4 out of 41 pages

The Coursework is written in 2025 for Jan intake submission. It includes complete coursework prepared. The awarded marks was 83,which is a distinction marks. Hence this document can be used as a baseline for future courseworks

Content preview

COMP 1702 BIGDATA

Sinchana Mallesh
001427852
MSc In Data Science

,Table of Contents
TASK A: HADOOP ANALYSIS ...........................................................................................................1
TASK B: DATA WAREHOUSE DESIGN: .............................................................................................3
TASK C: MAPREDUCE PROGRAMMING ........................................................................................28
TASK D: BIG DATA PROJECT ANALYSIS ..........................................................................................32
D1: Data Lake vs. Data Warehouse ..............................................................................................32
D2: Real-Time Analytics Framework ............................................................................................33
D3: Cloud Hosting Strategy .........................................................................................................34
REFERENCES ...............................................................................................................................36




i

,TABLE OF FIGURES:

Figure 1: Hive Table Creation for 'Customers' Table ...................................................................... 4
Figure 2:Hive Table Creation for 'Sales' Table ............................................................................... 4
Figure 3:Hive Table Creation for 'Products' Table .......................................................................... 5
Figure 4:Data Insertion into 'Customers' Table in Hive .................................................................. 5
Figure 5: Data Insertion into 'Sales' Table in Hive .......................................................................... 5
Figure 6: Data Insertion into 'Products' Table in Hive .................................................................... 6
Figure 7:Query to Find Total Sales Amount by Each Customer ..................................................... 6
Figure 8:Hive Query Execution of Total Sales Amount by Each Customer .................................... 7
Figure 9: Output Showing Total Sales Amount by Each Customer (Part 1) .................................... 7
Figure 10:Output Showing Total Sales Amount by Each Customer (Part 2) ................................... 8
Figure 11: Output Showing Total Sales Amount by Each Customer (Part 3) .................................. 8
Figure 12: Final Result Set of Total Sales Amount by Each Customer ........................................... 9
Figure 13: Query Code for Listing the Top 5 Highest-Priced Products Sold ................................... 9
Figure 14: Hive Query Execution for Listing the Top 5 Highest-Priced Products Sold ................. 10
Figure 15: Output Showing Top 5 Highest-Priced Products Sold ................................................. 10
Figure 16: Final Result Set of Top 5 Highest-Priced Products Sold .............................................. 11
Figure 17: Query Code for Calculating the Average Price of Products by Category ..................... 11
Figure 18: Hive Query Execution for Average Price of Products by Category .............................. 12
Figure 19: Output Showing Average Price of Products by Category (Part 1) ................................ 12
Figure 20: Final Result Set of Average Price of Products by Category ......................................... 13
Figure 21: Query Code for Customers Purchasing More Than One Product in a Transaction ....... 13
Figure 22: Hive Query Execution for Customers Purchasing More Than One Product ................. 14
Figure 23: Final Result Set of Customers with Multiple Product Transactions ............................. 14
Figure 24: Query Code for Products That Have Never Been Sold (Zero Sales) ............................ 15
Figure 25: Hive Query Execution for Products with Zero Sales ................................................... 15
Figure 26: Final Result Set of Unsold Products............................................................................ 15
Figure 27: Query Code for Total Sales Amount and Quantity Sold per Category.......................... 16
Figure 28: Hive Query Execution for Sales Amount and Quantity per Category .......................... 16
Figure 29: Output Showing Sales Amount and Quantity per Category (Part 1) ............................ 16


ii

, Figure 30: Final Result Set of Sales Amount and Quantity per Category ...................................... 17
Figure 31: Query Code for Top 3 Cities with Highest Total Sales ................................................ 17
Figure 32: Hive Query Execution for Top 3 Cities with Highest Sales ......................................... 18
Figure 33: Output Showing Top 3 Cities by Sales (Part 1) ........................................................... 18
Figure 34: Final Result Set of Top 3 Cities with Highest Sales..................................................... 19
Figure 35: Query Code for Total Products Sold by Each Customer ............................................. 19
Figure 36: Hive Query Execution for Total Products Sold by Each Customer .............................. 20
Figure 37: Output Showing Products Sold by Each Customer (Part 1) ......................................... 20
Figure 38: Output Showing Products Sold by Each Customer (Part 2) ......................................... 21
Figure 39: Output Showing Products Sold by Each Customer (Part 3) ......................................... 21
Figure 40: Final Result Set of Products Sold by Each Customer .................................................. 22
Figure 41: Query Code for Total Sales for Each Product .............................................................. 22
Figure 42: Hive Query Execution for Total Sales per Product ...................................................... 23
Figure 43: Output Showing Sales for Each Product (Part 1) ......................................................... 23
Figure 44: Output Showing Sales for Each Product (Part 2) ......................................................... 24
Figure 45: Output Showing Sales for Each Product (Part 3) ......................................................... 24
Figure 46: Final Result Set of Sales for Each Product .................................................................. 25
Figure 47: Query Code for Number of Customers per City .......................................................... 25
Figure 48: Hive Query Execution for Number of Customers per City .......................................... 26
Figure 49: Output Showing Customers per City (Part 1) .............................................................. 26
Figure 50: Final Result Set of Customers per City ....................................................................... 27




iii

Document information

Study
Unknown
Uploaded on
November 13, 2025
Number of pages
41
Written in
2025/2026
Type
Other
Person
Unknown
$15.22

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
2
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions