Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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.