[ 
https://issues.apache.org/jira/browse/OOZIE-2920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Artem Ervits reopened OOZIE-2920:
---------------------------------

[~rkanter] I'll take care of that, I was confused and should've thought of 
distcp action but didn't as I was distracted by the thought of native action. 
Do you think it's worth including this example in the docs as that's what 
spawned my idea to open this jira? I needed a way to copy files within a 
directory w/out copying the parent dir.
{noformat}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<workflow-app xmlns="uri:oozie:workflow:0.5" name="copy-files-example">
    <start to="copy_files_from_one_dir_to_another"/>
    <action name="copy_files_from_one_dir_to_another">
        <distcp xmlns="uri:oozie:distcp-action:0.2">
            <job-tracker>${resourceManager}</job-tracker>
            <name-node>${nameNode}</name-node>
            <arg>${nameNode}/tmp/distcp-in/*</arg>
            <arg>${nameNode}/tmp/distcp-out/</arg>
        </distcp>
        <ok to="end"/>
        <error to="kill"/>
    </action>
    <kill name="kill">
        <message>${wf:errorMessage(wf:lastErrorNode())}</message>
    </kill>
    <end name="end"/>
</workflow-app>
{noformat}

> Extend FS action to do HDFS copy
> --------------------------------
>
>                 Key: OOZIE-2920
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2920
>             Project: Oozie
>          Issue Type: New Feature
>    Affects Versions: 4.3.0
>            Reporter: Artem Ervits
>            Assignee: Artem Ervits
>
> Today FS action has a limited number of actions, it would benefit community 
> if FS copy would be available.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to