Problem Scenario 79 : You have been given MySQL DB with following details.
user=retail_dba
password=cloudera
database=retail_db
table=retail_db.orders
table=retail_db.order_items
jdbc URL = jdbc:mysql://quickstart:3306/retail_db
Columns of products table : (product_id | product categoryid | product_name | product_description | product_prtce | product_image )
Please accomplish following activities.
1. Copy "retaildb.products" table to hdfs in a directory p93_products
2. Filter out all the empty prices
3. Sort all the products based on price in both ascending as well as descending order.
4. Sort all the products based on price as well as product_id in descending order.
5. Use the below functions to do data ordering or ranking and fetch top 10 elements top()
takeOrdered() sortByKey()
Davida
10 months agoGianna
9 months agoLuke
9 months agoTandra
9 months agoChristiane
9 months agoMaddie
10 months agoStaci
10 months agoNana
10 months agoLashunda
11 months agoLucy
11 months agoAbraham
11 months agoRefugia
10 months agoRocco
10 months agoShawnna
10 months agoShenika
10 months agoLenna
11 months agoJade
11 months agoKimberely
10 months agoAleisha
10 months agoQuinn
10 months agoMarcos
10 months agoFrancisca
10 months agoJutta
11 months agoVeronika
11 months ago