title: How to put file to HDFS with Snappy compression
body: <p>I am working for a client where I should put some files to HDFS with Snappy compression. My problem is snappy codec is not defined in <code>mapred-site.xml</code> or <code>hdfs-site.xml</code></p>
  
  <p>Somehow I have to put files preferably using <code>hdfs put</code> command and they should be compressed. There is no chance to change configuration files since it is a production machine and other people using it actively.</p>
  
  <p>Another suggested solution was to import files to HDFS without compression then create hive external tables with compression and use its source files while deleting the uncompressed files. But this is a long way to go and it is not guaranteed to work.</p>
  
  <p>Any suggestions will be appreciated about using <code>hdfs put</code> with some kind of parameters to compress files.</p>