Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

how to execute oozie shell action with script having curl command

Solved Go to solution
Highlighted

how to execute oozie shell action with script having curl command

Explorer

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

Accepted Solutions

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

Master Guru
> 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.
1 REPLY 1

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

Master Guru
> 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.
Don't have an account?
Coming from Hortonworks? Activate your account here