ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yaolei (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-14536) Enhance the function of HdfsResource to copy matching wildcard file to hdfs
Date Sat, 09 Jan 2016 18:34:39 GMT

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

yaolei updated AMBARI-14536:
----------------------------
    Description: 
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_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")


  was:
In some cases,we need to copy local matching wildcard file to hdfs.
eg. we'd like to copy /usr/lib/spark*.jar to hdfs by following codes in Python:
params.HdfsResource(hdfs_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")



> Enhance the function of HdfsResource to copy matching wildcard file to hdfs
> ---------------------------------------------------------------------------
>
>                 Key: AMBARI-14536
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14536
>             Project: Ambari
>          Issue Type: Improvement
>    Affects Versions: trunk
>            Reporter: yaolei
>            Priority: Minor
>             Fix For: 2.3.0
>
>         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_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)

Mime
View raw message