File Extensions of Compressed Files

Lists extensions of compressed files.

By default, HPE Ezmeral Data Fabric does not compress files whose filename extensions indicate they are already compressed. The default list of filename extensions is as follows:

  • bz2
  • gz
  • lzo
  • snappy
  • tgz
  • tbz2
  • zip
  • z
  • Z
  • mp3
  • jpg
  • jpeg
  • mpg
  • mpeg
  • avi
  • gif
  • png
  • jar

The list of filename extensions not to compress is stored as comma-separated values in the mapr.fs.nocompression configuration parameter and can be modified with the config save command. For example, you can add parquet to the default list:

maprcli config save -values '{"mapr.fs.nocompression":"bz2,gz,lzo,snappy,tgz,tbz2,zip,z,Z,mp3, \
jpg,jpeg,mpg,mpeg,avi,gif,png,parquet"}'

The list can be viewed with the config load command. Example:

maprcli config load -keys mapr.fs.nocompression
NOTE
The filename extensions given in the default list of filename extensions are case-sensitive. For example, Data Fabric compresses a file with the extension .JPG, even if .jpg files are not to be compressed, by default. If you do not want the files in the file system with the .JPG extension to be compressed, add JPG to the list of filename extensions for the mapr.fs.nocompression configuration parameter.