Apache log analysis with Hadoop, Hive and HBase
✓ Published0🌍 Public
Aadkdev
Last edited Jan 3, 2012
Created on May 19, 2016
This example demonstrates how to analyze Apache web server logs using Hadoop, Hive, and HBase. It shows the process of transforming raw gzipped log files stored on the Hadoop Distributed File System into a structured HBase table, then querying that table to find the 50 most popular pages and categorize article hits by publication year. The Hive script uses the RegexSerDe to parse log lines, the HBaseStorageHandler to map Hive columns to HBase column families (m, r, a), and SQL-like queries with functions such as `unix_timestamp`, `re_extract`, and `TABLESAMPLE` to clean and aggregate the data.
AI-generated description