[SOLVED] Big-Data Project 1-Querying using Hive on Yellow Taxi data

35.00 $

Category: Tags: , , , , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon PROJECT-1-Big-Data-3vuf7b.zip (3.7 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

 

Querying using Hive on Yellow Taxi data

Problem statement:

In this case study, we are giving a real-world example of how to use HIVE on top of the HADOOP for different exploratory data analysis. In here, we have a predefined dataset (2018_Yellow_Taxi_Trip_Data.csv) having more than 15 columns and more than 100000 records in it. The dataset has different attributes like

  1. vendor_id string,
  2. pickup_datetime string,
  3. dropoff_datetime string,
  4. passenger_count int,
  5. trip_distance DECIMAL(9,6),
  6. pickup_longitude DECIMAL(9,6),
  7. pickup_latitude DECIMAL(9,6),
  8. rate_code int,
  9. store_and_fwd_flag string,
  10. dropoff_longitude DECIMAL(9,6),
  11. dropoff_latitude DECIMAL(9,6),
  12. payment_type string,
  13. fare_amount DECIMAL(9,6),
  14. extra DECIMAL(9,6),
  15. mta_tax DECIMAL(9,6),
  16. tip_amount DECIMAL(9,6),
  17. tolls_amount DECIMAL(9,6),
  18. total_amount DECIMAL(9,6),
  19. trip_time_in_secs int

 

Perform taxi trip analysis by solving the questions below:

  1. What is the total Number of trips ( equal to the number of rows)?
  2. What is the total revenue generated by all the trips? The fare is stored in the column total_amount.
  1. What fraction of the total is paid for tolls? The toll is stored in tolls_amount.
  2. What fraction of it is driver tips? The tip is stored in tip_amount.
  3. What is the average trip amount?
  4. What is the average distance of the trips? Distance is stored in the column trip_distance.
  5. How many different payment types are used?
  6. For each payment type, display the following details:
  • Average fare generated
  • Average tip
  • Average tax – tax is stored in column mta_tax
  1. On average which hour of the day generates the highest revenue?

 

Q1) Creating table:-

Q.2) Finding no of Records:

 

Q3. Info about Table: –

 

 

Q4) Listing the Distinct Vendors: –

Q5) Maximum Passengers hold by a vendor:-

Q6) How many times each vendor carry their passengers: –

Q7) Maximum tip to the vendor ever: –

Q8) which vendor have been given maximum tip and how much:-

Q9) Fraction to tolls amount w.r.t to total amount:-

Q10) On an average how much mta_tax has been given:-

Q11) Average trip time :-Q12) How many different payment types are used:-

Q13) Average passenger count:

Q14)Maximum time spent by passenger:-

Q15)Distinct Rate Code:

  • PROJECT-1-Big-Data-3vuf7b.zip