Hi
As a part of my oozie flows I need to create "touchz" files to notify
status of each stage.
I could never get Oozie shell action to work so I wanted to see if I could
use Hive to run a hdfs/hadoop command
I had run hadoop commands inside hive but wanted to run them using -e and
-f option
Here is the result of my experiment. Hopefully it helps some of u !
HIVE -e option
==============
hive -e \!"hdfs dfs -touchz
/user/sasubramanian/gz.files.2013-06-07.files.copied.successful"
HIVE -f option
==============
Contents of mytouch.hql
!hdfs dfs -touchz
/user/sasubramanian/gz.files.${DATE_STR}.files.copied.successful
# AT runtime I replace ${DATE_STR} with todays date
hive -f mytouch.hql
Creates the file beautifully
sanjay
CONFIDENTIALITY NOTICE
======================
This email message and any attachments are for the exclusive use of the
intended recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender by reply email and
destroy all copies of the original message along with any attachments, from
your computer system. If you are the intended recipient, please be advised that
the content of this message is subject to access, review and disclosure by the
sender's Email System Administrator.