A customer is collecting clickstream data using Amazon kinesis and is grouping the events by IP address into 5-minute chunks stored in Amazon S3.
Many analysts in the company use Hive on Amazon EMR to analyze this data. Their queries always reference a single IP address. Data must be optimized for querying based on UP address using Hive running on Amazon EMR.
What is the most efficient method to query the data with Hive?
A . Store an index of the files by IP address in the Amazon DynamoDB metadata store for EMRFS
B . Store the Amazon S3 objects with the following naming scheme: bucketname/source=ip_address/year=yy/month=mm/day=dd/hour=hh/filename
C . Store the data in an HBase table with the IP address as the row key
D . Store the events for an IP address as a single file in Amazon S3 and add metadata with key:Hive_Partitioned_IPAddress
Answer: B
Leave a Reply