Reply
Contributor
Posts: 55
Registered: ‎09-17-2013
Accepted Solution

how to execute oozie shell action with script having curl command

Hi,

 

I need to create oozie workflow that exeuctes a shell script. The shell script has curl command which downloads a specific file from the download link. 

 

As commands in shell scripts are only able to recognize hdfs directories, how could i execute the script.?

 

Sample code:

 

curl -o ~/test.jar http://central.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.jar

hdfs dfs -copyFromLocal ~/test.jar /user/sr/test2

Posts: 1,892
Kudos: 431
Solutions: 302
Registered: ‎07-31-2013

Re: how to execute oozie shell action with script having curl command

> As commands in shell scripts are only able to recognize hdfs directories

This is an incorrect assumption. The shell action will merely execute any
given script file (as normally executed from a process), and does not care
about what is within it.

Does your script fail with an error? If so, please post the error.
Announcements