Lab – More Hive Queries and Hive Built-In functions Objectives This lab builds on the last lab. We will analyse the data uploaded to Hive using some HQL queries Deliverable Screenshot of each query results. One for each query. Each query should be fully displayed. No need to show the entire query result. Partial display of the result is sufficient. Open the Hive query editor in Cloudera Select all column from the salesdata table Select orderdate, salesamount and rowid from salesdata table and show 100 records. Modify the above step to show orderdate column heading as OrderDate, salesamount as Sales, and rowed as RowNum Create a new hive query to find OrderMonth, the total number of orders, total sales, average sales, minimum sales and maximum sales for each month. Sort so that newer sales statistics are at the top. Modify the query you created for question 5 to show breakdown for each category Use GROUPING SETS to modify the above query to show the ...
Education for everyone!