Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 4 — Big Data Fundamentals

Lesson 42 of 46 in the free Introduction to Data Analytics notes on Siksha Sarovar, written by Rohit Jangra.

Big Data Fundamentals

Big Data refers to datasets so large, fast-moving or varied that traditional data-processing tools (a single machine, a relational database, Pandas in memory) cannot capture, store, manage or analyse them within an acceptable time.

Working definition: if your data comfortably fits in RAM on one machine and a Pandas script finishes in minutes, it is not big data — it is just data. Big data begins where single-machine processing breaks down.

The V's of Big Data

The Original 3 V's (Doug Laney, 2001)

VMeaningExamples
VolumeSheer quantity of dataFacebook stores 300+ PB; a single Boeing engine emits ~500 GB per flight
VelocitySpeed of generation and required processing6,000 tweets/second; stock ticks in microseconds; IoT sensor streams
VarietyDifferent formats and structuresText, images, video, audio, logs, JSON, sensor readings, geospatial

Extended V's

VMeaningWhy it matters
VeracityAccuracy, trustworthiness, and uncertainty of the dataDirty data at petabyte scale produces confidently wrong conclusions
ValueAbility to convert data into business benefitStorage costs money; data with no value is a liability, not an asset
VariabilityInconsistency in meaning and flow over timeSentiment of a word changes; traffic spikes during events
VisualizationMaking massive data comprehensibleYou cannot scatter-plot a billion points meaningfully

Data Volume Scale

   1 Kilobyte  (KB) = 1,000 bytes        ~ half a page of text
   1 Megabyte  (MB) = 1,000 KB           ~ one MP3 song
   1 Gigabyte  (GB) = 1,000 MB           ~ one HD movie
   1 Terabyte  (TB) = 1,000 GB           ~ 250,000 photos
   1 Petabyte  (PB) = 1,000 TB           ~ all US academic research libraries
   1 Exabyte   (EB) = 1,000 PB           ~ all words ever spoken by humanity (est.)
   1 Zettabyte (ZB) = 1,000 EB           ~ global annual internet traffic

Types of Big Data

TypeShareDescriptionExamples
Structured~20%Fixed schema, rows and columnsTransaction tables, sensor logs with fixed fields
Semi-structured~10%Self-describing tags, flexible schemaJSON, XML, log files, emails
Unstructured~70–80%No predefined modelVideo, images, audio, free text, social media posts

Traditional vs Big Data Systems

BasisTraditional (RDBMS)Big Data Systems
Data volumeGB to a few TBTB to PB and beyond
Data typesStructured onlyAll types
SchemaSchema-on-write — defined before loadingSchema-on-read — applied when queried
ArchitectureCentralised, scale-up (bigger server)Distributed, scale-out (more commodity servers)
HardwareExpensive, specialisedCommodity, cheap, expendable
ProcessingBatch, mostly interactive SQLBatch + stream + interactive
Fault toleranceHardware redundancy (RAID, failover)Software-level replication — assumes failure is normal
Data modelRelational, normalised, ACIDOften denormalised, NoSQL, BASE
Cost per TBHighLow
ExamplesOracle, MySQL, PostgreSQL, SQL ServerHadoop, Spark, Cassandra, MongoDB, Kafka

Scale-Up vs Scale-Out

Big data architecture is built on scale-out. The insight is that a thousand cheap machines cost less than one supercomputer and can be added incrementally — as long as the software handles the inevitable failures.

The CAP Theorem

For any distributed data store, you can guarantee at most two of the following three:

   C — CONSISTENCY:         every read sees the most recent write
   A — AVAILABILITY:        every request receives a response
   P — PARTITION TOLERANCE: the system keeps working despite network failures

Since network partitions are unavoidable in a distributed system, P is
mandatory — so the real design choice is between C and A.
ChoiceDescriptionSystems
CPConsistent + partition tolerant; may reject requests during a partitionHBase, MongoDB (default), Redis
APAvailable + partition tolerant; may return stale dataCassandra, DynamoDB, CouchDB
CAOnly possible in a single-node (non-distributed) systemTraditional RDBMS

ACID vs BASE

ACID (traditional RDBMS)BASE (big data / NoSQL)
Atomicity — all or nothingBAsically Available — responds even if degraded
Consistency — valid state alwaysSoft state — state may change without input
Isolation — concurrent transactions don't interfereEventual consistency — converges given enough time
Durability — committed data survives failures

NoSQL Databases

TypeData modelBest forExamples
Key-ValueSimple key → value pairsCaching, sessions, very fast lookupsRedis, DynamoDB, Riak
DocumentJSON/BSON documentsSemi-structured content, flexible schemasMongoDB, CouchDB
Column-familyColumns grouped into familiesTime series, huge sparse tablesCassandra, HBase
GraphNodes and edgesRelationships, social networks, fraud ringsNeo4j, Amazon Neptune

Big Data Processing Paradigms

ParadigmDescriptionLatencyTechnologies
Batch processingProcess large volumes accumulated over timeMinutes to hoursHadoop MapReduce, Spark
Stream processingProcess each event as it arrivesMilliseconds to secondsKafka Streams, Flink, Spark Streaming, Storm
Micro-batchTiny batches at short intervals — a compromiseSecondsSpark Structured Streaming
Interactive / ad-hocFast SQL queries over big dataSecondsHive, Presto/Trino, Impala, Drill

Lambda vs Kappa Architecture

Lambda gives accuracy plus speed at the cost of maintaining two codebases. Kappa simplifies to one streaming pipeline and re-derives history by replaying the event log.

The Big Data Technology Landscape

LayerPurposeTechnologies
IngestionGet data inKafka, Flume, Sqoop, NiFi
StorageStore at scaleHDFS, Amazon S3, Azure Data Lake, Google Cloud Storage
ProcessingComputeMapReduce, Spark, Flink, Tez
QuerySQL accessHive, Presto/Trino, Impala, Drill
NoSQLOperational storesCassandra, HBase, MongoDB
Resource managementCluster schedulingYARN, Mesos, Kubernetes
CoordinationDistributed consensusZooKeeper
WorkflowPipeline orchestrationAirflow, Oozie, Luigi
ML at scaleDistributed learningSpark MLlib, TensorFlow, H2O
VisualizationDashboardsTableau, Power BI, Superset, Grafana

Apache Spark — The Modern Standard

Spark superseded MapReduce as the default big-data processing engine.

Hadoop MapReduceApache Spark
ProcessingDisk-based — writes to disk between stagesIn-memory
SpeedBaseline10–100× faster for iterative workloads
Ease of useVerbose JavaConcise APIs in Python (PySpark), Scala, R, SQL
WorkloadsBatch onlyBatch + streaming + SQL + ML + graph
Iterative algorithmsVery slow (re-reads from disk each pass)Excellent — data cached in memory
# PySpark — the same operations you know from Pandas, distributed across a cluster
# from pyspark.sql import SparkSession
# from pyspark.sql import functions as F
#
# spark = SparkSession.builder.appName("SalesAnalysis").getOrCreate()
#
# df = spark.read.parquet("s3://bucket/sales/*.parquet")     # billions of rows
#
# result = (df
#     .filter(F.col("year") == 2026)
#     .groupBy("region", "category")
#     .agg(F.sum("revenue").alias("total_revenue"),
#          F.count("*").alias("orders"),
#          F.avg("revenue").alias("avg_order"))
#     .orderBy(F.desc("total_revenue")))
#
# result.show(20)
# result.write.mode("overwrite").parquet("s3://bucket/output/")

Big Data Challenges

ChallengeDescription
Storage and costPetabyte-scale storage plus replication is expensive
Data quality (veracity)Cleaning at scale is far harder than cleaning a CSV
IntegrationMerging dozens of heterogeneous sources with conflicting schemas
Security and privacyLarge centralised stores are high-value breach targets; GDPR/DPDP compliance
Skills gapShortage of engineers who know distributed systems and analytics
Real-time demandsSub-second latency requirements over huge volumes
GovernanceLineage, cataloguing, access control, retention policies
Tool sprawlThe ecosystem changes fast; integration burden is high

Benefits

BenefitExample
Better, evidence-based decisionsReal-time inventory and pricing decisions
Deep customer understanding360° customer view across every touchpoint
Operational efficiencyPredictive maintenance eliminating unplanned downtime
New revenue streamsData-driven products and services
Real-time fraud detectionBlocking a fraudulent transaction in milliseconds
Personalisation at scaleIndividual recommendations for millions of users
InnovationTraining the ML/AI models that need enormous datasets

The next two lessons detail the foundational big data platform: Hadoop and its MapReduce programming model.