1. Gyanastra
  2. Database Systems
  3. UGC NET: Big Data Systems
  4. Big Data Characteristics and Architecture
Free lesson, no account needed 11 min read 21 practice questions after it

Database Systems · UGC NET: Big Data Systems

Big Data Characteristics and Architecture

Overview

Big Data Systems studies data whose size, arrival speed, or format diversity makes traditional single-machine relational processing impractical.
The topic belongs to DBMS Extras under Big Data Systems and assumes basic knowledge of schemas, ACID transactions, tables, keys, and distributed systems.
The exam tests the Big Data “V” characteristics, structured versus semi-structured versus unstructured data, schema-on-write and schema-on-read, data lakes, Lambda and Kappa architectures, CAP/PACELC trade-offs, Hadoop/HDFS, MapReduce, and NoSQL families.
These ideas explain why Big Data stacks use distributed storage, parallel processing, streaming layers, and flexible schemas.

Key concepts

  • Big Data is data that cannot be stored, processed, or analysed efficiently by one conventional machine or RDBMS within acceptable time and cost.
  • Volume: the size of data, commonly stated in GB, TB, PB, and EB.
  • Velocity: the speed at which data arrives and must be processed; it includes batch, micro-batch, near-real-time, and real-time streams.
  • Variety: different data forms. Structured data has a fixed schema, such as CSV tables and relational rows. Semi-structured data has tags or keys but no rigid table schema, such as JSON, XML, and key-tagged server log⁡s\log s.
    Unstructured data has no predefined model, such as free text, images, audio, and video.
  • Veracity: trustworthiness, accuracy, completeness, and noise or bias level of data. It is not the same as Value, which is the usefulness of insights obtained.
  • Core four Vs are Volume, Velocity, Variety, Veracity. The original three Vs omit Veracity. A fifth V is often Value; additional named Vs include Variability, Validity, Visualization, and Volatility.
  • Schema-on-write applies validation and structure before storage; it is typical of a data warehouse. Schema-on-read stores raw data first and applies structure when reading; it is typical of a data lake.
  • A data lake stores raw structured, semi-structured, and unstructured data in native formats. A data warehouse stores cleaned, modelled, schema-enforced data for SQL analytics.
  • A Lambda Architecture has a Batch Layer for complete, accurate recomputation, a Speed Layer for low-latency results on recent data, and a Serving Layer that merges batch and speed views.
  • A Kappa Architecture treats all data as a stream, uses one stream-processing path, and performs reprocessing by replaying a durable log.
  • CAP theorem: a distributed store can guarantee at most two of Consistency, Availability, and Partition tolerance during a network partition. Real systems are usually CP or AP under partition.
  • PACELC extends CAP: if there is a Partition, choose Availability or Consistency; Else choose Latency or Consistency.
  • HDFS is the Hadoop Distributed File System. The NameNode is the master holding metadata; DataNodes are workers storing blocks and replicas.
    Hadoop 2 and later default HDFS block size is 128 MB; the default replication factor is commonly 3.
  • MapReduce is a batch model: map tasks process splits, shuffle/sort groups intermediate keys, and reduce tasks aggregate results. Intermediate results commonly spill to disk between phases.
  • Hadoop ecosystem tools include HDFS, MapReduce, YARN (Yet Another Resource Negotiator), HBase, Hive, Pig, Spark, Sqoop, Flume, Kafka, Oozie, and ZooKeeper. HBase is a column-family NoSQL store; Hive gives SQL-like querying over Hadoop data.
  • Hadoop 2/YARN improves cluster resource management and allows multiple processing engines, but HDFS plus MapReduce is not a native live real-time stream processor.
    Real-time streaming needs tools such as Storm, Flink, Kafka Streams, or Spark Streaming.
  • NoSQL families: key-value, document, column-family, and graph. Memcached is key-value, CouchDB is document, HBase is column-family, and InfiniteGraph is graph.

How it works

  1. Data is collected from sources by an ingestion layer. Batch ingestion moves files in groups; streaming ingestion captures events continuously; micro-batch groups small time windows.
  2. The storage layer keeps raw and processed data. A data lake keeps native formats; HDFS stores huge files as replicated blocks across DataNodes.
  3. The processing layer runs batch jobs, stream jobs, or both. Batch processing scans large stored datasets; stream processing handles events with low latency.
  4. The serving layer exposes query results, dashboards, APIs, and models. In Lambda, it merges batch views and speed views.
  5. A management/governance layer handles metadata, security, lineage, quality, and access control.

Lambda flow:

In Lambda, every incoming stream is dispatched to both layers because the batch layer gives accurate but delayed results over the whole history, while the speed layer gives immediate but temporary results over recent data. The serving layer combines them.

Kappa flow: all events go to a durable append-only log; one stream processor reads the log; to change logic, replay the log from an earlier point. No separate batch layer is required.

HDFS master-worker flow:

The client asks the NameNode where blocks are. The NameNode returns metadata and block locations. The client reads or writes block data directly with DataNodes; DataNodes replicate blocks as instructed.

Figure. Notice that storage feeds both the batch layer and the speed layer, and their outputs meet at the serving layer before applications.
Figure. In this HDFS master-worker flow, the NameNode connects to three DataNodes, and the client connects to both the NameNode and each DataNode.

Formulas

  • Number of HDFS blocks: B=⌈DS⌉B=\left\lceil \frac{D}{S}\right\rceil, where DD is logical data size and SS is block size. For multiple files, sum over files.

  • Raw HDFS storage ignoring overhead: Sraw=D×RS_{\text{raw}}=D\times R, where RR is the replication factor.

  • Events per stream batch: λb=λ×Δt\lambda_b=\lambda\times \Delta t, where λ\lambda is events per second and Δt\Delta t is batch interval in seconds.

  • Bytes per stream batch: Mb=λ×Δt×eM_b=\lambda\times \Delta t\times e, where ee is bytes per event.

  • Stream throughput: T=λ×eT=\lambda\times e bytes per second.

  • Batch job written data: W=(fs+fo)DW=(f_s+f_o)D, where fsf_s is shuffle-write fraction and fof_o is output fraction of input.

  • Total batch I/O: I/O=D+(fs+fo)D\text{I/O}=D+(f_s+f_o)D.

  • Use 1 GB = 1024 MB when converting block counts unless a question fixes decimal units; raw storage D×RD\times R is unchanged under either convention.

Worked examples

Example 1. A 400 GB dataset is stored in HDFS with block size 128 MB and replication factor 3. Ignoring metadata and partial-block overhead, find block count and raw storage.

  1. D=400×1024=409600D=400\times1024=409600 MB.
  2. B=⌈409600/128⌉=3200B=\lceil 409600/128\rceil=3200 blocks.
  3. Sraw=D×R=400×3=1200S_{\text{raw}}=D\times R=400\times3=1200 GB =1.2=1.2 TB.
    Check: 3200×128 MB×3=1228800 MB=12003200\times128\text{ MB}\times3=1228800\text{ MB}=1200 GB.
    Answer: 3200 blocks; 1.2 TB raw storage.

Example 2. A stream processor receives 50,000 events/s, each 2 KB, and batches for 200 ms. Find events per batch, batch size, and throughput.

  1. Δt=0.2\Delta t=0.2 s.
  2. λb=50000×0.2=10000\lambda_b=50000\times0.2=10000 events.
  3. Mb=10000×2 KB=20000 KBM_b=10000\times2\text{ KB}=20000\text{ KB}. Under decimal MB this is 20 MB; under binary MB it is about 19.53 MiB.
  4. T=50000×2 KB/s=100000 KB/sT=50000\times2\text{ KB/s}=100000\text{ KB/s}.
    Answer: 10,000 events per batch; 20,000 KB per batch; 100,000 KB/s throughput.

Example 3. A batch job reads 2 TB from a data lake. It writes an intermediate shuffle equal to 50% of input and a final output equal to 25% of input. Find total data written and total I/O.

  1. shuffle write =0.50×2=1=0.50\times2=1 TB.
  2. final output =0.25×2=0.5=0.25\times2=0.5 TB.
  3. total written =1+0.5=1.5=1+0.5=1.5 TB.
  4. total I/O == read 22 TB ++ written 1.51.5 TB =3.5=3.5 TB.
    Answer: 1.5 TB written; 3.5 TB total I/O.

Example 4. Statement I: The Lambda batch layer periodically recomputes batch views over the entire master dataset. Statement II: The speed layer stores the complete master dataset and replaces the batch layer. Which statement is true?

  1. Batch layer is designed for complete, accurate, delayed recomputation over all master data, so I is true.
  2. Speed layer handles recent data for low latency; it does not store the whole master dataset or replace the batch layer, so II is false.
    Answer: I only.

Example 5. Trace this micro-batch word count.

batches = [["a","b"],["a"],["b","c"]]
counts = {}
for batch in batches:
    local = {}
    for word in batch:
        local[word] = local.get(word, 0) + 1
    for word, count in local.items():
        counts[word] = counts.get(word, 0) + count
print(counts)

Batch 1 local: a=1, b=1; counts: a=1, b=1.
Batch 2 local: a=1; counts: a=2, b=1.
Batch 3 local: b=1, c=1; counts: a=2, b=2, c=1.
Output: {'a': 2, 'b': 2, 'c': 1}.

Comparison

ConceptMeaningExam trap
VolumeLarge sizeNot arrival speed
VelocityFast arrival/processingNot format diversity
VarietyMany data formatsNot trustworthiness
VeracityAccuracy, completeness, noiseNot business value
ValueUseful insightExtra fifth V
AspectSchema-on-writeSchema-on-read
Schema appliedBefore storageAt query/read time
Typical systemData warehouseData lake
Ingestion speedSlower due to validationFaster, raw storage
Query speedUsually fasterCan be slower; parsing at read
RiskRejects non-conforming data earlyDirty/unusable data may remain
FlexibilityLowHigh
AspectLambda ArchitectureKappa Architecture
Processing pathBatch plus speed layersStream-only
ReprocessingRecompute batch views from master datasetReplay durable log
LatencyLow-latency speed layer plus delayed batchContinuous stream processing
ComplexityHigher, two code pathsLower, one path
Best fitAccurate batch views plus real-time viewsEvent-first systems with replayable log
Hadoop componentPrimary role
NameNodeMaster; metadata and namespace
DataNodeWorker; stores HDFS blocks and replicas
MapReduceBatch distributed computation
YARNCluster resource management
HBaseColumn-family NoSQL on HDFS
HiveSQL-like warehouse/query layer
SparkIn-memory distributed processing engine
SqoopBulk transfer between Hadoop and RDBMS
FlumeLog/event ingestion
KafkaDurable distributed streaming log
ZooKeeperCoordination service
NoSQL familyModelExamples
Key-valueKey maps to valueMemcached, Redis
DocumentJSON/BSON documentsCouchDB, MongoDB
Column-familySparse wide rowsHBase, Cassandra
GraphNodes and edgesNeo4j, InfiniteGraph

Revision summary

  • Core four Vs: Volume, Velocity, Variety, Veracity.
  • JSON, XML, and key-tagged log⁡s\log s are semi-structured; CSV/table rows are structured; free text/media are unstructured.
  • Schema-on-write suits warehouses; schema-on-read suits data lakes and speeds ingestion.
  • Lambda = batch + speed + serving; the same stream goes to batch and speed.
  • Kappa = stream-only; reprocess by replaying the durable log.
  • HDFS NameNode is master; DataNodes are workers.
  • HDFS raw storage ignoring overhead = logical size × replication factor.
  • CAP applies during network partition; PACELC adds else latency versus consistency.
  • Hadoop 2/YARN is not native real-time stream processing.
  • MapReduce is batch-oriented and spills intermediate data to disk.
  • Memcached is key-value, CouchDB is document, InfiniteGraph is graph.
  • Check whether a numeric question asks total written or total I/O.

Previous-year exam insights

  • Direct concept questions ask which V means trustworthiness, which V means format diversity, and which structural type JSON/XML/key-tagged log⁡s\log s belong to.
    Check the exact wording before choosing Veracity versus Value.
  • Architecture matching questions pair Batch Layer with whole-dataset recomputation, Speed Layer with low-latency recent data, Serving Layer with merged query views, and Ingestion with source collection.
  • Statement and assertion questions test Lambda dispatch, schema-on-read speed, CAP/PACELC, and MapReduce disk behaviour.
    Decide each statement separately.
  • Numeric questions use HDFS replication, stream batch size, and batch I/O fractions.
    Read whether the answer is events per batch, bytes per batch, raw storage, final output, total written, or total I/O.
  • Hadoop questions test ecosystem membership and node roles: NameNode is master, DataNode is worker; MapReduce, HBase, and Hive are Hadoop-related tools, while MySQL is an RDBMS.
  • A common trap is treating Hadoop 2/YARN as a native live stream processor.
    It supports resource management and multiple processing models; streaming requires a dedicated engine.
  • NoSQL classification questions ask whether Memcached, CouchDB, and InfiniteGraph belong to Big Data NoSQL families; they do, under key-value, document, and graph respectively.
  • CAP questions often wrongly imply that AP means always inconsistent.
    CAP classifies behaviour during partition; normal operation may still provide strong consistency.

Practice at PARIKSHA

You are ready for the PARIKSHA tests of this sub-topic when you can:

  1. Define the three, four, and five Vs and classify a given scenario correctly.
  2. Distinguish structured, semi-structured, and unstructured data with examples.
  3. Explain schema-on-write versus schema-on-read and why data lakes ingest faster.
  4. State why single-node RDBMSs struggle with Velocity and Variety.
  5. Draw Lambda Architecture and assign Batch, Speed, and Serving layer roles.
  6. Explain Kappa Architecture and how replay from a durable log replaces a batch layer.
  7. Compute HDFS block count and raw storage from dataset size, block size, and replication factor.
  8. Compute events per stream batch, bytes per batch, and throughput from rate and event size.
  9. Evaluate CAP/PACELC and Lambda statement-type questions without confusing partition-time behaviour with normal behaviour.
  10. Classify Hadoop ecosystem components and NoSQL examples, and trace a small micro-batch word count.

Attempt the PARIKSHA sub-topic test first, then the subject test.

Pages 1–2 of 2