[ https://issues.apache.org/jira/browse/HDFS-13960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16808088#comment-16808088 ]
Hudson commented on HDFS-13960: ------------------------------- SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #16329 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/16329/]) HDFS-13960. hdfs dfs -checksum command should optionally show block size (weichiu: rev cf268114c9af2e33f35d0c24b57e31ef4d5e8353) * (edit) hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md * (edit) hadoop-common-project/hadoop-common/src/test/resources/testConf.xml * (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSShell.java * (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Display.java > hdfs dfs -checksum command should optionally show block size in output > ---------------------------------------------------------------------- > > Key: HDFS-13960 > URL: https://issues.apache.org/jira/browse/HDFS-13960 > Project: Hadoop HDFS > Issue Type: Improvement > Components: hdfs > Reporter: Adam Antal > Assignee: Lokesh Jain > Priority: Minor > Fix For: 3.3.0 > > Attachments: HDFS-13960.001.patch, HDFS-13960.002.patch, > HDFS-13960.003.patch > > > The hdfs checksum command computes the checksum in a distributed manner, > which would take into account the block size. In other words, the block size > determines how the file will be broken up. > Therefore itĀ can happen that the checksum command produces different outputs > for the exact same file only differing in the block size: > checksum(fileABlock1) + checksum(fileABlock2) != checksum(fileABlock1 + > fileABlock2) > I suggest to add an option to the hdfs dfs -checksum command which would > displays the block sizeĀ along with the output, and that could also be helpful > in some other cases where this piece of information is needed. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org