title: Error: Could not initialize class org.xerial.snappy.Snappy
body: <p>I am importing data from RDBMS to hdfs using sqoop 1.4.6 using snappyCodec as compression and avro as file format. I have following components installed <br /><br />
  Hadoop 2.8.0 <br />
  Spark 2.1.0 <br />
  Hive 1.2.2 <br />
  Scala 2.11.8 <br />
  Cassandra 3.10 <br />
  <br />
  When i try to import mysql table to hdfs using with following command: </p>
  
  <pre><code>sqoop import --connect jdbc:mysql://******:****/retail_db --username **** --password **** --table order_items --compress --compression-codec org.apache.hadoop.io.compress.SnappyCodec --target-dir /user/test/order_items --as-avrodatafile
  </code></pre>
  
  <p>I'm getting following error: </p>
  
  <pre><code>Could not initialize class org.xerial.snappy.Snappy
  </code></pre>
  
  <p>and it times out after trying to find this class. <br />
  I tried solutions mentioned regarding this issue like mounting tmp and adding snappy jar file ( which is already present ) but none of them works. Anything I am missing ?</p>