hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiahongchao (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-10709) hdfs shell du command not match OS du command
Date Mon, 01 Aug 2016 09:15:20 GMT
Jiahongchao created HDFS-10709:

             Summary: hdfs shell du command not match OS du command
                 Key: HDFS-10709
                 URL: https://issues.apache.org/jira/browse/HDFS-10709
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: fs
    Affects Versions: 2.6.0
         Environment: centos 6.7,jdk 1.7
            Reporter: Jiahongchao
            Priority: Minor

I got files created by solr on HDFS, but the size is different when using HDFS du and centos
[apd@dev186 ~]$ hdfs dfs -du /solr/fileSizeTest/core_node1/data/tlog
46  402653184  /solr/fileSizeTest/core_node1/data/tlog/tlog.0000000000000000002
[apd@dev186 ~]$ hdfs dfs -ls /solr/fileSizeTest/core_node1/data/tlog
Found 1 items
-rw-r--r--   3 solr solr         46 2016-08-01 13:18 /solr/fileSizeTest/core_node1/data/tlog/tlog.0000000000000000002

after download this file using get,
[apd@dev186 ~]$ ll -h  tlog.0000000000000000002 
-rw-r--r-- 1 apd apd 8.5M Aug  1 15:48 tlog.0000000000000000002

so what's dfhs dfs's du?And why the two values are so different? 46  vs 402653184 ?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org

View raw message