Question
  1. Write the SQL statement to find the uri with the largest number of entries for the host with the largest number of log entries. Paste it here.
  2. Execute the statement on the cluster and paste the results here.
  3. 1Summary: This sample shows you how to analyze CloudFront logs stored in S3 using Hive 3Create table using sample data in S3.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

To find largest number of log entries of uri 1st we need to get of count. We get count by doing count of ip address/dateobject. For every hit on dateobject will created. Upon getting count we need to find largest of count. Below is with which we can achieve results.

Select uri,max(CountUri) from (

Se|ect uri, count(dateobject) as CountUri from Cloudfront_logs group by uri) AS subTable;

Add a comment
Know the answer?
Add Answer to:
Write the SQL statement to find the uri with the largest number of entries for the host with the largest number of log entries. Paste it here. Execute the statement on the cluster and paste the resul...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT