Skip to main content
newbieone
Silver ⭐️⭐️⭐️
Jul 16, 2022 2:35 AM UTC
Solved

Ozzie Hive Script

Hi folks,

 

Can I use the below script in Ozzie workflow?

 

WITH order_data (order_date, product_name, amount)

AS (

SELECT

  order_date,

  product_name,

  SUM(i.quantity * i.list_price * (1 - discount))

FROM sales.orders o

INNER JOIN sales.order_items i

  ON i.order_id = o.order_id

INNER JOIN production.products p

  ON p.product_id = i.product_id

GROUP BY order_date,

         product_name

)

 

SELECT * FROM order_data;

balajip
balajipAnswer
Gold ⭐️
Jul 27, 2022 1:01 AM UTC

@newbieoneWas the above query working fine in hs2(beeline) ? If yes then you can use the oozie-hive action to run the query.

Refer: https://community.cloudera.com/t5/Community-Articles/Oozie-Hive-2-Action-in-a-Kerberized-cluster/ta-p/248913

3 replies

balajip
Gold ⭐️
balajipAnswer
Gold ⭐️
Jul 27, 2022 1:01 AM UTC

@newbieoneWas the above query working fine in hs2(beeline) ? If yes then you can use the oozie-hive action to run the query.

Refer: https://community.cloudera.com/t5/Community-Articles/Oozie-Hive-2-Action-in-a-Kerberized-cluster/ta-p/248913

Translate
newbieone
newbieoneAuthor
Silver ⭐️⭐️⭐️
Jul 27, 2022 11:24 AM UTC
Thanks
Translate
VidyaSargur
Community Manager
Community Manager
Jul 27, 2022 2:44 PM UTC

@newbieone, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.