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