how can I see that compression ratio of a file/directory?

asked 04 Oct '11, 07:38

sirpy's gravatar image

sirpy
41111113
accept rate: 10%


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 mapr@maprnode:~#

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

link

answered 04 Oct '11, 09:38

Lohit's gravatar image

Lohit ♦♦
2.1k311
accept rate: 44%

edited 04 Oct '11, 09:41

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×48
×17
×15

Asked: 04 Oct '11, 07:38

Seen: 967 times

Last updated: 04 Oct '11, 09:41

powered by OSQA