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 du.
[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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]