-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42021/#review113403
-----------------------------------------------------------



ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
 (line 305)
<https://reviews.apache.org/r/42021/#comment174020>

    Should this be moved inside the **if file_status** block?



ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
 (line 308)
<https://reviews.apache.org/r/42021/#comment174023>

    Why is only index 0 considered? What about the other matches?


- Matt


On Jan. 7, 2016, 7:07 p.m., yao lei wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42021/
> -----------------------------------------------------------
> 
> (Updated Jan. 7, 2016, 7:07 p.m.)
> 
> 
> Review request for Ambari.
> 
> 
> Bugs: AMBARI-14536
>     https://issues.apache.org/jira/browse/AMBARI-14536
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> 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")
> 
> 
> Diffs
> -----
> 
>   
> ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
>  731bce7 
> 
> Diff: https://reviews.apache.org/r/42021/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> yao lei
> 
>

Reply via email to