You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Brahma Reddy Battula (Jira)" <ji...@apache.org> on 2023/02/25 06:54:00 UTC

[jira] [Commented] (AMBARI-24675) Hdfs Resource File Check using checksums

    [ 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: issues-unsubscribe@ambari.apache.org
For additional commands, e-mail: issues-help@ambari.apache.org