Reputation: 95
I have a current oozie job that queries an Oracle table and writes - overwrites the result on a hive query. Now I need to prevent overwriting the hive table and save the existing data on that hive table. For this I wanted to plan such steps: 1st step: Get record count running a "select count(*) from..." query and write it on a file. 2nd step: Check the count written in file. 3rd step: decision step whether or not 4th step will be applied. 4th step: Run the main query and overwrite the hive table.
My problem is I couldn't find anything on documentation and or examples regarding writing them on a file (I know import and export is the aim of sqoop) . Does anyone know how to write the wuery result on a file?
Upvotes: 0
Views: 551
Reputation: 9067
In theory:
my.count=12345
<capture_output/>
flag, to run that jobmy.count
using
the appropriate EL functionIn practise, well, have fun!
Upvotes: 1