[
https://issues.apache.org/jira/browse/AMBARI-24675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmytro Grinenko reassigned AMBARI-24675:
----------------------------------------
Assignee: Dmytro Grinenko
> 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
>
> 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.3.4#803005)