Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

how to execute oozie shell action with script having curl command

avatar
Rising Star

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

1 ACCEPTED SOLUTION

avatar
Mentor
> 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.

View solution in original post

1 REPLY 1

avatar
Mentor
> 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.