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
8 months agoGianna
7 months agoLuke
7 months agoTandra
7 months agoChristiane
7 months agoMaddie
8 months agoStaci
8 months agoNana
8 months agoLashunda
8 months agoLucy
8 months agoAbraham
9 months agoRefugia
8 months agoRocco
8 months agoShawnna
8 months agoShenika
8 months agoLenna
9 months agoJade
9 months agoKimberely
8 months agoAleisha
8 months agoQuinn
8 months agoMarcos
8 months agoFrancisca
8 months agoJutta
8 months agoVeronika
9 months ago