Eurostar
Eurostar is an international company with multiple branches worldwide. Through its
website, Eurostar offers most of the products and services online. This report considers the
analysis of Apache web-logs using Hive to determine the pattern and possible business
insight.
Amazon web services provide a platform called AWS EMR that integrates with Hive, an
open-source application to provide a scalable and efficient architecture for analyzing large–
scale data.
The log files are collected between 5th July and 5th August 2014, and the files are stored in
Amazon S3 at the below-mentioned path.
Path: s3://us-east-1.elasticmapreduce.samples
Region: us-east-1 —> North Virginia region
There are 4996 entries, and each entry provides details of every user in the log files in the
below-mentioned format:
Each entry provides various attributes like date, time, internet protocol, resource location,
type of browser, and type of device. Overall, it gives the user’s requests to access
resources/website and the software devices installed on devices as a medium to access the
website.
Hive Script Overview:
Hive uses SerDe (serializer/deserialiser) to translate various data formats into readable
format like database tables. In this case, SerDe with the regular expressions to parse log
file data into a defined log file table.
The script also uses HiveQL, similar to SQL like a scripting language, for further analysis
and data warehousing.