1. Home
  2. Explore
  3. Computer Science
  4. Big Data Analytics Overview

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Big Data Analytics Overview

  • 38Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Big Data Fundamentals
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is the definition of Big Data?

Tap to flipClick to flipspace

A huge amount of data that cannot be processed using traditional methods (e.g., RDBMS) due to volume, velocity, or variety.

Or swipe the card

38 cards

  1. What is the definition of Big Data?

    A huge amount of data that cannot be processed using traditional methods (e.g., RDBMS) due to volume, velocity, or variety.

  2. What are the main limitations of RDBMS for handling big data?

    As data size increases, processing becomes slow; schema-on-write requires predefined structure; cannot handle unstructured data; expensive (e.g., Oracle licensing); limited scalability (only vertical scaling or logical partitioning).

  3. Why is Hadoop considered a solution for big data?

    It provides distributed storage (HDFS) and processing (MapReduce) on commodity hardware, offering scalability, fault tolerance, and cost efficiency.

  4. What is the difference between schema-on-write and schema-on-read?

    Schema-on-write (RDBMS) validates data structure at write time; schema-on-read (Hadoop) applies structure only when reading, allowing flexible storage of raw data.

  5. What is HDFS and what are its main components?

    HDFS (Hadoop Distributed File System) is a distributed file system with a NameNode (master) storing metadata and DataNodes (slaves) storing actual data blocks.

  6. What is the default block size in HDFS?

    64 MB (older Hadoop versions) or 128 MB (modern production clusters). It is configurable.

  7. What is the default replication factor in HDFS?

    1. Each block is replicated three times across different DataNodes for fault tolerance.
  8. How does HDFS handle data modifications?

    HDFS is write-once-read-many; files cannot be edited after creation. Appends are possible but not random updates or deletions (except whole file deletion).

  9. What is rack awareness in HDFS?

    A feature that ensures block replicas are placed on different racks to prevent data loss from an entire rack failure.

  10. What is data locality in MapReduce?

    The principle of moving computation to where the data resides (on the same DataNode) to minimize network traffic.

  11. What is the role of YARN in Hadoop?

    YARN (Yet Another Resource Negotiator) is the resource management layer that allocates CPU and memory to applications (like MapReduce, Spark) running on the cluster.

  12. What is Sqoop used for?

    Sqoop is a tool to transfer bulk data between Hadoop (HDFS) and relational databases (RDBMS) using JDBC.

  13. What is Apache Flume and when is it used?

    Flume is a distributed service for efficiently collecting, aggregating, and moving large amounts of log data (e.g., from servers) into HDFS or other sinks.

  14. What is Apache Kafka and how does it differ from Flume?

    Kafka is a distributed publish-subscribe message queue that stores streams of records. It differs from Flume in being a central buffer that allows multiple consumers to read data independently, whereas Flume is point-to-point.

  15. What is the purpose of Hive in the Hadoop ecosystem?

    Hive provides a SQL-like interface (HQL) to query data stored in Hadoop, converting queries into MapReduce or Tez jobs for execution.

  16. What is the difference between managed and external tables in Hive?

    Managed tables (internal) store data in the Hive warehouse directory; dropping the table deletes data. External tables point to data in a user-specified location; dropping the table only removes metadata, not the data.

  17. What is Hive partitioning and why is it used?

    Partitioning divides a table into subdirectories based on partition columns (e.g., date, country) to reduce the amount of data scanned during queries.

  18. What is the difference between static and dynamic partitioning in Hive?

    In static partitioning, the partition value is specified explicitly during data load. In dynamic partitioning, Hive automatically determines partition values from the data being inserted.

  19. What is bucketing in Hive and how does it improve performance?

    Bucketing divides data into a fixed number of files (buckets) based on the hash of a column. It improves join performance when both tables are bucketed on the same join key.

  20. What are the advantages of the ORC file format over text files in Hive?

    ORC (Optimized Row Columnar) provides compression, columnar storage, built-in indexing (stripes and row indexes), and predicate pushdown, leading to faster queries and reduced storage.

  21. What is Apache Spark and why is it popular?

    Spark is a unified, in-memory distributed processing engine that supports batch, streaming, SQL, machine learning, and graph processing. It is popular because it is faster than MapReduce (up to 100x) and easier to program (Python, Scala, Java, SQL).

  22. What is an RDD in Spark?

    An RDD (Resilient Distributed Dataset) is the fundamental data structure in Spark. It is an immutable, partitioned collection of records that can be processed in parallel and is fault-tolerant (lineage).

  23. What is the difference between transformations and actions in Spark?

    Transformations (e.g., map, filter) are lazy operations that produce a new RDD. Actions (e.g., collect, count, saveAsTextFile) trigger execution and send results to the driver or write to storage.

  24. How does Spark achieve faster processing than MapReduce?

    Spark performs computations in-memory, avoiding writing intermediate results to disk. It also uses a DAG scheduler to optimize execution and supports caching of RDDs for iterative algorithms.

  25. What are the main components of a Spark application?

    A Spark application consists of a driver process (running the main() function and creating SparkContext) and multiple executor processes (running tasks) distributed across the cluster.

  26. What is a SparkSession?

    SparkSession is the entry point to Spark 2.0+ programming. It replaces SparkContext, SQLContext, and HiveContext, unifying the API for different workloads.

  27. What is the default level of parallelism in Spark when reading from HDFS?

    The number of partitions equals the number of HDFS blocks. Each block becomes one partition by default, but this can be adjusted using repartition or coalesce.

  28. What is the purpose of caching an RDD in Spark?

    Caching persists the RDD across operations so that subsequent actions (e.g., multiple queries) reuse the same data without recomputing it from source.

  29. What is the difference between coalesce and repartition in Spark?

    Coalesce reduces the number of partitions without shuffling data (only if you are decreasing partitions). Repartition changes the number of partitions (increase or decrease) and performs a full shuffle.

  30. What is Spark Streaming and how does it process real-time data?

    Spark Streaming processes live data streams by dividing them into small batches (micro-batches) and processing them as RDDs (or DataFrames). It integrates with sources like Kafka, Flume, and TCP sockets.

  31. How does Spark's lazy evaluation benefit performance?

    Lazy evaluation allows Spark to build a DAG of transformations and optimize the execution plan (e.g., by combining operations) before any data is computed.

  32. What is a DAG in Spark?

    A DAG (Directed Acyclic Graph) represents the sequence of stages and tasks in a Spark job. Spark's DAG scheduler optimizes the execution plan.

  33. What are the common storage levels for persisting RDDs in Spark?

    MEMORY_ONLY, MEMORY_AND_DISK, DISK_ONLY, MEMORY_ONLY_SER (serialized), MEMORY_AND_DISK_SER, etc. Default is MEMORY_ONLY.

  34. What is the role of the SparkContext?

    SparkContext is the entry point for Spark functionality in versions before 2.0. It connects to the cluster manager and creates RDDs, accumulators, and broadcast variables.

  35. What is the difference between map and flatMap transformations in Spark?

    map applies a function to each element and returns an RDD with the same number of elements. flatMap applies a function that may return multiple elements (e.g., splitting a line into words) and flattens the result.

  36. How does Spark achieve fault tolerance with RDDs?

    Each RDD has a lineage (DAG of transformations). If a partition is lost, it can be recomputed from the original data using the lineage, without checkpointing.

  37. What is a broadcast variable in Spark?

    A broadcast variable allows the programmer to keep a read-only variable cached on each executor machine, rather than shipping a copy with every task.

  38. What is an accumulator in Spark?

    An accumulator is a variable that is only "added" to through an associative and commutative operation and can be used to implement counters or sums efficiently across tasks.

Card 1 of 38
Card 1 of 38

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent