- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
how to execute oozie shell action with script having curl command
- Labels:
-
Apache Oozie
-
HDFS
Created on ‎12-08-2015 04:41 PM - edited ‎09-16-2022 02:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎12-08-2015 09:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎12-08-2015 09:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
