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 .
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
- 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.
- The storage layer keeps raw and processed data. A data lake keeps native formats; HDFS stores huge files as replicated blocks across DataNodes.
- The processing layer runs batch jobs, stream jobs, or both. Batch processing scans large stored datasets; stream processing handles events with low latency.
- The serving layer exposes query results, dashboards, APIs, and models. In Lambda, it merges batch views and speed views.
- 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.
Drawing the diagram…
Drawing the diagram…
Formulas
-
Number of HDFS blocks: , where is logical data size and is block size. For multiple files, sum over files.
-
Raw HDFS storage ignoring overhead: , where is the replication factor.
-
Events per stream batch: , where is events per second and is batch interval in seconds.
-
Bytes per stream batch: , where is bytes per event.
-
Stream throughput: bytes per second.
-
Batch job written data: , where is shuffle-write fraction and is output fraction of input.
-
Total batch I/O: .
-
Use 1 GB = 1024 MB when converting block counts unless a question fixes decimal units; raw storage 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.
- MB.
- blocks.
- GB TB.
Check: 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.
- s.
- events.
- . Under decimal MB this is 20 MB; under binary MB it is about 19.53 MiB.
- .
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.
- shuffle write TB.
- final output TB.
- total written TB.
- total I/O read TB written TB 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?
- Batch layer is designed for complete, accurate, delayed recomputation over all master data, so I is true.
- 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
| Concept | Meaning | Exam trap |
|---|---|---|
| Volume | Large size | Not arrival speed |
| Velocity | Fast arrival/processing | Not format diversity |
| Variety | Many data formats | Not trustworthiness |
| Veracity | Accuracy, completeness, noise | Not business value |
| Value | Useful insight | Extra fifth V |
| Aspect | Schema-on-write | Schema-on-read |
|---|---|---|
| Schema applied | Before storage | At query/read time |
| Typical system | Data warehouse | Data lake |
| Ingestion speed | Slower due to validation | Faster, raw storage |
| Query speed | Usually faster | Can be slower; parsing at read |
| Risk | Rejects non-conforming data early | Dirty/unusable data may remain |
| Flexibility | Low | High |
| Aspect | Lambda Architecture | Kappa Architecture |
|---|---|---|
| Processing path | Batch plus speed layers | Stream-only |
| Reprocessing | Recompute batch views from master dataset | Replay durable log |
| Latency | Low-latency speed layer plus delayed batch | Continuous stream processing |
| Complexity | Higher, two code paths | Lower, one path |
| Best fit | Accurate batch views plus real-time views | Event-first systems with replayable log |
| Hadoop component | Primary role |
|---|---|
| NameNode | Master; metadata and namespace |
| DataNode | Worker; stores HDFS blocks and replicas |
| MapReduce | Batch distributed computation |
| YARN | Cluster resource management |
| HBase | Column-family NoSQL on HDFS |
| Hive | SQL-like warehouse/query layer |
| Spark | In-memory distributed processing engine |
| Sqoop | Bulk transfer between Hadoop and RDBMS |
| Flume | Log/event ingestion |
| Kafka | Durable distributed streaming log |
| ZooKeeper | Coordination service |
| NoSQL family | Model | Examples |
|---|---|---|
| Key-value | Key maps to value | Memcached, Redis |
| Document | JSON/BSON documents | CouchDB, MongoDB |
| Column-family | Sparse wide rows | HBase, Cassandra |
| Graph | Nodes and edges | Neo4j, InfiniteGraph |
Revision summary
- Core four Vs: Volume, Velocity, Variety, Veracity.
- JSON, XML, and key-tagged 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 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:
- Define the three, four, and five Vs and classify a given scenario correctly.
- Distinguish structured, semi-structured, and unstructured data with examples.
- Explain schema-on-write versus schema-on-read and why data lakes ingest faster.
- State why single-node RDBMSs struggle with Velocity and Variety.
- Draw Lambda Architecture and assign Batch, Speed, and Serving layer roles.
- Explain Kappa Architecture and how replay from a durable log replaces a batch layer.
- Compute HDFS block count and raw storage from dataset size, block size, and replication factor.
- Compute events per stream batch, bytes per batch, and throughput from rate and event size.
- Evaluate CAP/PACELC and Lambda statement-type questions without confusing partition-time behaviour with normal behaviour.
- 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.