Prabhu Joseph created AMBARI-24675: -------------------------------------- Summary: 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
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 (v7.6.3#76005)