Products & Services
MapR Book Club
to create and rate content, and to follow, bookmark, and share content with other members.
viewing compression ratio
Question asked by
on Oct 3, 2011
on Oct 4, 2011 by lohit
Show 1 Like
how can I see that compression ratio of a file/directory?
No one else has this question
Mark as assumed answered
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Oct 4, 2011 2:20 AM
You could get it via __hadoop mfs -lss___ command.
For example in the below output
mapr@maprnode:~# hadoop mfs -lss /libMapRClient.so.1
Found 1 items
-rwxrwxrwx Z 3 root root 21444535 1406 2011-10-04 09:33 268435456 /libMapRClient.so.1
p 2049.37.16498 8 perfnode30.perf.lab:5660 perfnode29.perf.lab:5660 perfnode36.perf.lab:5660
0 2081.32.102 1398 perfnode30.perf.lab:5660 perfnode37.perf.lab:5660 perfnode29.perf.lab:5660
Actual file size (uncompressed) is __21444535__ bytes. Compressed or physical file size is sum of entires of column 3 times 8K. Column 3 shows number of physical blocks of individual chunks of file. So in this case it is __(8 + 1398) * 8K__
Show 0 Likes
Retrieving data ...
Is it possible to run an Oozie Spark Action without specifying inputDir & outputDir
importJSON quietly fails for no reason
How to import data from oracle into MapR DB ?
Sqoop1 unable to import BLOB (Images) from Oracle to Hive