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

  • 41Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Big Data Fundamentals

What is the technical definition of big data?

41 questions

  1. 1

    What is the technical definition of big data?

    Model answer

    Big data is a huge amount of data that cannot be processed using traditional methods.

    Explanation

    Big data refers to datasets so large or complex that traditional data processing applications are inadequate. The transcript states: 'the technical definition off big data is this huge amount off data which you cannot process using your traditional methods.'

  2. 2

    What is a key limitation of RDBMS systems as data size increases?

    Model answer

    As data size increases, processing becomes very slow and join queries can fail or take a long time.

    Explanation

    The transcript explains that with traditional RDBMS, when tables become large, join queries become slow or fail, and the system cannot cope with processing large volumes of data efficiently.

  3. 3

    What are the three main problems with using RDBMS for modern big data applications mentioned in the transcript?

    Model answer

    The three problems are: scalability (cannot cope with increasing data size), schema inflexibility (cannot handle unstructured data), and cost (enterprise RDBMS are expensive).

    Explanation

    The transcript lists scalability, schema (unstructured data handling), and price as key issues. The presenter mentions that as data grows, processing slows, unstructured data cannot be stored/processed, and Oracle licenses cost crores.

  4. 4

    What is polyglot persistence?

    Model answer

    Polyglot persistence means using different types of databases together, such as using RDBMS for transaction management and NoSQL databases for other types of data.

    Explanation

    The transcript explains that companies use a mix of RDBMS for transactional data (ACID) and NoSQL databases for other data types, calling this 'polyglot persistence' or coexistence of traditional and new databases.

  5. 5

    What is the role of ETL in traditional enterprise architecture?

    Model answer

    ETL (Extract, Transform, Load) tools extract data from various sources, transform it, and load it into a data warehouse for analysis.

    Explanation

    The transcript describes ETL as the process where tools like Informatica take data from different sources (Oracle, MySQL, flat files, social media), apply some schema, and push it to a central data warehouse.

  6. 6

    What is the difference between a data warehouse and an OLTP system?

    Model answer

    A data warehouse is not customer-facing; it is used for analytics and reporting, whereas an OLTP system handles real-time transactions.

    Explanation

    The transcript states that a data warehouse is 'not facing the customer' and is used for analytics, while OLTP systems serve customers directly. Data warehouses are for online analytical processing (OLAP).

  7. 7

    Why did ICICI Bank want to migrate to a big data solution?

    Model answer

    They faced challenges with ETL tools being limited, lack of real-time capabilities, high cost of traditional data warehouses, and the need to integrate large volumes of unstructured data.

    Explanation

    The transcript explains ICICI Bank's problems: ETL tools couldn't handle increasing data, no real-time processing, expensive data warehouse, and they wanted a scalable, cheaper, real-time solution that could integrate any data type.

  8. 8

    What is Hadoop?

    Model answer

    Hadoop is an open-source framework for distributed storage and processing of large datasets across clusters of commodity hardware.

    Explanation

    The transcript describes Hadoop as a framework that allows storing and processing huge amounts of data on a cluster of commodity machines. It was created by Doug Cutting and Mike Cafarella, based on Google's ideas.

  9. 9

    What are the three major components of Hadoop?

    Model answer

    HDFS (storage), YARN (resource management), and MapReduce (processing).

    Explanation

    The transcript states: 'Hope has three major components... HDFS, YARN, MapReduce'. HDFS handles storage, YARN manages resources, and MapReduce is the processing framework.

  10. 10

    What is a Hadoop cluster?

    Model answer

    A Hadoop cluster is a group of computers (nodes) that work together to store and process data using Hadoop software.

    Explanation

    The transcript defines a cluster as a group of machines, with one master and multiple slaves, that provides distributed storage and processing.

  11. 11

    Explain the concept of commodity hardware in Hadoop clusters.

    Model answer

    Commodity hardware means using cheap, throwaway servers instead of expensive enterprise servers. Hadoop is designed to run on such hardware and tolerate node failures.

    Explanation

    The transcript emphasizes that Hadoop clusters use commodity hardware (like ₹35,000 servers) to keep costs low, and failures are expected and handled by replication.

  12. 12

    What is HDFS and what does it stand for?

    Model answer

    HDFS stands for Hadoop Distributed File System. It is the storage component of Hadoop that distributes data across multiple nodes in blocks with replication.

    Explanation

    The transcript explains HDFS as the file system responsible for storing data in blocks, with replication for fault tolerance.

  13. 13

    What are the two main processes in HDFS architecture?

    Model answer

    NameNode (master) and DataNode (slave). NameNode stores metadata, DataNodes store the actual data blocks.

    Explanation

    The transcript describes NameNode as the master that holds metadata, and DataNodes as slaves that store data blocks.

  14. 14

    What is the default block size in HDFS?

    Model answer

    The default block size in older Hadoop versions was 64 MB, but in production it is commonly 128 MB or 256 MB.

    Explanation

    The transcript uses 64 MB as an example but notes that production clusters use 128 MB or more, and block size is configurable.

  15. 15

    Why is HDFS block size large (e.g., 128 MB) compared to typical file system block sizes?

    Model answer

    Large block sizes reduce seek time and allow for efficient sequential reads, which suits batch processing of large datasets.

    Explanation

    The transcript mentions that large block sizes reduce seek overhead and are designed for sequential access, not random access.

  16. 16

    What is the default replication factor in HDFS?

    Model answer

    The default replication factor is 3.

    Explanation

    The transcript states that each block is replicated three times to different DataNodes for fault tolerance.

  17. 17

    What happens if a DataNode fails in HDFS?

    Model answer

    NameNode detects the failure and automatically replicates the missing blocks from other replicas to maintain the replication factor.

    Explanation

    The transcript explains that if a DataNode crashes, the blocks are still available from other replicas, and NameNode will create new replicas on healthy nodes.

  18. 18

    What is the role of the NameNode in HDFS?

    Model answer

    NameNode stores metadata about files (names, locations, permissions) and manages the file system namespace.

    Explanation

    The transcript describes NameNode as storing metadata and coordinating access to data blocks.

  19. 19

    What is a NameNode High Availability (HA) setup?

    Model answer

    An active-standby pair of NameNodes where the standby takes over automatically if the active fails, preventing single point of failure.

    Explanation

    The transcript mentions that most clusters have an active and a standby NameNode to avoid a single point of failure.

  20. 20

    What is rack awareness in HDFS?

    Model answer

    Rack awareness is a feature where HDFS places replicas across different racks to prevent data loss in case of a rack failure.

    Explanation

    The transcript explains that if enabled, HDFS will place replicas on different racks to tolerate entire rack failures.

  21. 21

    What is MapReduce used for in Hadoop?

    Model answer

    MapReduce is a programming model for processing large datasets in parallel across a Hadoop cluster.

    Explanation

    The transcript states that MapReduce is the default processing framework on Hadoop for batch processing.

  22. 22

    What are the two main phases in a MapReduce job?

    Model answer

    Map phase (processing input key-value pairs) and Reduce phase (aggregating intermediate results).

    Explanation

    The transcript implies the map and reduce phases, and mentions that intermediate results are written to disk.

  23. 23

    What is YARN and what does it do?

    Model answer

    YARN (Yet Another Resource Negotiator) is the resource management layer of Hadoop that manages cluster resources and schedules jobs.

    Explanation

    The transcript describes YARN as a component that handles resource management and scheduling.

  24. 24

    What is the advantage of YARN over the older Hadoop 1.x architecture?

    Model answer

    YARN separates resource management from job scheduling, allowing multiple data processing engines (like MapReduce, Spark) to run on the same cluster.

    Explanation

    The transcript mentions that YARN came with Hadoop 2.x and enables different frameworks to share resources.

  25. 25

    What is a container in YARN?

    Model answer

    A container is a collection of resources (CPU, memory) allocated by YARN to run a task (e.g., a mapper or reducer).

    Explanation

    The transcript explains that YARN launches containers for executors in Spark, and containers have a certain amount of RAM and vcores.

  26. 26

    What is Hive and what problem does it solve?

    Model answer

    Hive is a data warehouse tool that provides a SQL-like interface (HiveQL) to query data stored in Hadoop, translating queries into MapReduce jobs.

    Explanation

    The transcript says Hive was created by Facebook to allow SQL developers to query Hadoop without writing Java MapReduce code.

  27. 27

    What is the difference between a managed table and an external table in Hive?

    Model answer

    In a managed table, Hive manages the data; when the table is dropped, the data is deleted. In an external table, Hive only manages metadata; dropping the table leaves the data intact.

    Explanation

    The transcript explains that managed tables delete data on drop, while external tables only remove metadata, preserving the underlying data.

  28. 28

    What is partitioning in Hive and why is it used?

    Model answer

    Partitioning divides a table into subdirectories based on partition columns (e.g., date, country) to reduce data scanned and improve query performance.

    Explanation

    The transcript describes partitioning as a technique to organize data into folders so that queries on partition columns scan only relevant data.

  29. 29

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

    Model answer

    In static partitioning, you manually specify the partition values when loading data. In dynamic partitioning, Hive automatically creates partitions based on the data values.

    Explanation

    The transcript contrasts static partitioning (user specifies partition with LOAD DATA) and dynamic partitioning (INSERT INTO ... PARTITION from a query, generating partitions on the fly).

  30. 30

    What is bucketing (clustering) in Hive?

    Model answer

    Bucketing divides data into a fixed number of buckets (files) based on a hash of a column. It enables efficient sampling and faster joins (bucket join).

    Explanation

    The transcript explains bucketing as hash partitioning that creates multiple files within a partition, useful for joining tables on the bucketed column.

  31. 31

    What is the purpose of the Hive Metastore?

    Model answer

    The Hive Metastore stores metadata about tables (schema, location, partitions) and is often backed by a relational database like MySQL.

    Explanation

    The transcript mentions that Hive uses a Metastore to persist table definitions and schemas, and SparkSQL can connect to the same Metastore.

  32. 32

    What is a SerDe in Hive?

    Model answer

    A SerDe (Serializer/Deserializer) is used by Hive to interpret how to read and write data in a specific format (e.g., JSON, Regex, custom format).

    Explanation

    The transcript shows using a Regex SerDe to parse Apache log files, and mentions that Hive has built-in SerDes for various formats.

  33. 33

    What is Impala and how does it differ from Hive?

    Model answer

    Impala is a massively parallel processing (MPP) SQL engine that runs directly on HDFS without converting to MapReduce, offering faster interactive queries but less fault tolerance.

    Explanation

    The transcript explains that Impala executes queries in memory and is faster, but if a node fails the query fails, unlike Hive which is fault-tolerant via MapReduce.

  34. 34

    What is Spark?

    Model answer

    Spark is an open-source, unified analytics engine for large-scale data processing. It provides in-memory processing, making it faster than MapReduce.

    Explanation

    The transcript describes Spark as an in-memory execution engine that can run faster than MapReduce and supports multiple workloads: batch, SQL, streaming, machine learning, graph processing.

  35. 35

    What is an RDD in Spark?

    Model answer

    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.

    Explanation

    The transcript explains RDD as a pointer to data in memory, divided into partitions, and immutable (cannot be changed, only transformed into new RDDs).

  36. 36

    What is the difference between transformations and actions in Spark?

    Model answer

    Transformations (e.g., map, filter) create a new RDD from an existing one and are lazy (evaluated only when an action is called). Actions (e.g., collect, count) trigger computation and return a result to the driver.

    Explanation

    The transcript highlights that transformations are lazily evaluated; nothing happens until an action is called, which triggers the entire DAG execution.

  37. 37

    What is lazy evaluation in Spark?

    Model answer

    Lazy evaluation means that Spark does not execute transformations immediately; instead, it builds a directed acyclic graph (DAG) of operations and executes it only when an action is called.

    Explanation

    The transcript states: 'Spark will not start execution unless you call something called an action.' This lazy execution allows optimization.

  38. 38

    What is caching in Spark and why is it useful?

    Model answer

    Caching stores an RDD in memory (or disk) so that subsequent actions on the same RDD can reuse it without recomputation. It speeds up iterative algorithms.

    Explanation

    The transcript explains that caching an RDD allows multiple actions to use the same data without reloading from the source, improving performance for iterative jobs.

  39. 39

    What is the Spark driver?

    Model answer

    The driver is the master process in a Spark application. It runs the user's main program, creates a SparkContext, and schedules tasks on executors.

    Explanation

    The transcript describes the driver as the master of the program and mentions that if the driver fails, the application fails.

  40. 40

    What is an executor in Spark?

    Model answer

    An executor is a worker process launched on a node to run tasks and store data for a Spark application. Multiple executors make up the distributed computing.

    Explanation

    The transcript explains that executors are launched by YARN (or cluster manager) and each runs a JVM that holds RDD partitions and executes tasks.

  41. 41

    What is SparkSQL?

    Model answer

    SparkSQL is a Spark module for structured data processing using SQL or DataFrames. It allows querying data with SQL and integrates with Hive Metastore.

    Explanation

    The transcript mentions SparkSQL as a library that runs SQL queries and is optimized with schema information, making it faster than plain RDD operations.

1 of 41
Question 1 of 41

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent