[ 
https://issues.apache.org/jira/browse/AMBARI-24675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17693418#comment-17693418
 ] 

Brahma Reddy Battula commented on AMBARI-24675:
-----------------------------------------------

Removing the 2.7.7 from the fix version as it's already out.

> Hdfs Resource File Check using checksums
> ----------------------------------------
>
>                 Key: AMBARI-24675
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24675
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Prabhu Joseph
>            Assignee: Dmytro Grinenko
>            Priority: Major
>              Labels: 2.7.8-RC-Candiate
>
> hdfs_resource currently checks only file size while copying a resource into 
> Hdfs, it has to be reimplemented using checksum.
> This impacts when changing a config value like 1 -> 2 where the filesize 
> remains same.
> {code}
> hdfs_resource.py
>   # TODO: re-implement this using checksums
>         if local_file_size == length:
>           Logger.info(format("DFS file {target} is identical to {source}, 
> skipping the copying"))
>           return
>         elif not self.main_resource.resource.replace_existing_files:
>           Logger.info(format("Not replacing existing DFS file {target} which 
> is different from {source}, due to replace_existing_files=False"))
>           return
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to