oozie FS 动作。复制命令

oozie fs action. copy command

我需要将目录从一个 hdfs 路径复制到另一个。但是,我 运行 进入 Oozie 框架中缺少 copy 命令:

<action name="SOME_ACTION">
    <fs>
        <copy source='/foo/src_dir' target='/bar/dest_dir'  />
    </fs>
    <ok to="END"/>
    <error to="KILL"/>
</action>

很遗憾,fs 操作中没有 copy 命令。那是错误,我有:

OozieClientException: org.apache.oozie.DagEngineException: E0701: XML schema error, cvc-complex-type.2.4.a: Invalid content was found starting with element 'copy'. One of '{"uri:oozie:workflow:0.4":delete, "uri:oozie:workflow:0.4":mkdir, "uri:oozie:workflow:0.4":move, "uri:oozie:workflow:0.4":chmod, "uri:oozie:workflow:0.4":touchz}' is expected.

为什么 copy 命令不存在?在 Oozie 框架中复制 hdfs 目录的规范方法是什么?

FS动作中没有副本。您可以使用 DistCp 操作来实现此目的:https://oozie.apache.org/docs/4.3.1/DG_DistCpActionExtension.html