Unit – IV
Pig: Introduction to Pig, Pig architecture, data model, Pig Latin, data processing operators.
Hive: Hive architecture, Hive services, HiveQL, data definition language, data manipulation language, querying data in Hive.
HBase and ZooKeeper: Fundamentals of HBase, HBase architecture, data model, role of ZooKeeper in distributed coordination.
Short Questions
1. Define Apache Pig.
2. What is Pig Latin?
3. Define HiveQL.
4. What is HBase?
5. Explain the architecture of Apache Pig.
6. Differentiate between Pig and Hive.
7. Explain the role of ZooKeeper in HBase.
8. A company wants to process large web log files using a scripting language instead of Java MapReduce. Which Hadoop component would you recommend? Justify your answer.
9. A retail organization wants to generate monthly sales reports using SQL-like queries on Hadoop. Which framework is more suitable? Explain.
10. A banking application requires random read/write access to millions of customer records. Suggest a suitable Hadoop database and justify your choice.
Eassay Questions
1. Explain the architecture of Apache Pig and discuss its advantages in Big Data processing.
2. An e-commerce company stores terabytes of customer clickstream data. Explain how Apache Pig can simplify data preprocessing before performing analytics.
3. Explain the Pig data model and describe the features of Pig Latin.
4. A university wants to analyze student attendance and examination records stored in Hadoop. Explain how Pig Latin scripts can be used to process and summarize the data efficiently.
5. Explain the commonly used data processing operators available in Apache Pig with suitable examples.
6. A social media company wants to remove duplicate user records and group posts based on hashtags before analysis. Explain how Pig operators can be used to accomplish these tasks.
7. Explain the architecture of Apache Hive and discuss the functions of its major components.
8. A supermarket chain stores daily sales records in Hadoop and wants to generate sales summaries department-wise. Explain how Hive architecture supports this requirement.
9. Explain Hive services and discuss the features of HiveQL.
10. A banking organization wants business analysts to generate reports using SQL-like queries instead of writing Java programs. Explain how HiveQL can simplify Big Data analysis
11. Explain Data Definition Language (DDL) and Data Manipulation Language (DML) commands in Hive with suitable examples.
12. A healthcare organization wants to create a patient database, insert new records, update information, and retrieve disease statistics using Hive. Explain how DDL and DML commands can be used for these operations.
13. Explain the process of querying data in Hive and discuss its advantages over traditional database querying for Big Data
14. A university maintains examination records for the last 15 years in Hadoop. Explain how Hive queries can be used to generate department-wise pass percentages and topper lists.
15. Explain the architecture and data model of HBase.
16. A hospital requires fast access to millions of patient records that are continuously updated. Explain why HBase is a suitable storage solution for this application.
17. Explain the role of ZooKeeper in HBase and discuss its importance in distributed systems.
18. A distributed Hadoop cluster contains multiple HBase servers. Explain how ZooKeeper coordinates these servers to ensure reliable data access and fault tolerance.
19. Compare Pig, Hive, and HBase with respect to their architecture, purpose, and applications.
20. A Big Data solution is being developed for an online shopping platform. The system needs:
• data preprocessing,
• SQL-based reporting, and
• real-time customer profile storage.
Recommend the appropriate Hadoop framework (Pig, Hive, or HBase) for each requirement and justify your choices.