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

Yao Lei updated AMBARI-14536:
-----------------------------
    Status: Open  (was: Patch Available)

> Enhance the function of HdfsResource to copy matching wildcard files to hdfs
> ----------------------------------------------------------------------------
>
>                 Key: AMBARI-14536
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14536
>             Project: Ambari
>          Issue Type: Improvement
>    Affects Versions: trunk
>            Reporter: Yao Lei
>            Priority: Minor
>         Attachments: AMBARI-14536.patch
>
>
> In some cases,we need to copy local matching wildcard files to hdfs.
> eg. we'd like to copy /usr/lib/spark*.jar to hdfs by following codes in 
> Python:
> params.HdfsResource(hdfs_dir_path,
>                     type="file",
>              action="create_on_execute",
>              source="/usr/lib/spark*.jar",
>              group=params.user_group,
>              owner=params.pdm_user,
>              mode=0755
> )
> params.HdfsResource(None, action="execute")



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to