Created 05-12-2016 08:04 PM
I'd like to follow an example to write my own custom oozie action.
Created 07-21-2016 12:21 PM
@Artem Ervits, we use a shell script to invoke a oozie workflow. Our script polls certain folders and if there are files they will be passed to the new invoked workflow. The shell script looks something like this:
#!/bin/bash -e for file in $(hdfs dfs -ls -R $pollfolder | grep "^-" | grep -Po "($pollfolder/[a-zA-Z]{2}_.*/[a-zA-Z]{2}_.*-[0-9]{1,}-.*.csv.gz)" | grep -vE '('$automatedfolder'|'$quarantinefolder')') do oozie job -oozie $ooziebaseurl -config $jobproperties -run \ -D file=$file \
This shell script can then be a shell action in a separate workflow that is triggered by a coordinator or can be just scheduled with cron.
*I removed the creation of the variables that also happens in this script to save some space.
Created 05-12-2016 08:07 PM
Created 07-08-2016 02:02 PM
To be more specific, we need an example of Oozie custom asynchronous action. @Saumil Mayani @Saurabh Jain @cnormile
Created 07-21-2016 12:21 PM
@Artem Ervits, we use a shell script to invoke a oozie workflow. Our script polls certain folders and if there are files they will be passed to the new invoked workflow. The shell script looks something like this:
#!/bin/bash -e for file in $(hdfs dfs -ls -R $pollfolder | grep "^-" | grep -Po "($pollfolder/[a-zA-Z]{2}_.*/[a-zA-Z]{2}_.*-[0-9]{1,}-.*.csv.gz)" | grep -vE '('$automatedfolder'|'$quarantinefolder')') do oozie job -oozie $ooziebaseurl -config $jobproperties -run \ -D file=$file \
This shell script can then be a shell action in a separate workflow that is triggered by a coordinator or can be just scheduled with cron.
*I removed the creation of the variables that also happens in this script to save some space.
Created 07-21-2016 12:29 PM
Thank you, the amount of engineering is done to make Oozie useful is astounding