Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> SnappyException even though the avro-tools JAR is present


Copy link to this message
-
SnappyException even though the avro-tools JAR is present
Hi...

I am trying to run some sample code from the Avro 1.7.3 distribution and,
for the weather-snappy.avro file, the following exception occurs:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/xerial/snappy/SnappyException
at
org.apache.avro.file.SnappyCodec$Option.createInstance(SnappyCodec.java:34)
at org.apache.avro.file.DataFileStream.resolveCodec(DataFileStream.java:139)
at org.apache.avro.file.DataFileStream.initialize(DataFileStream.java:125)
at org.apache.avro.file.DataFileStream.<init>(DataFileStream.java:84)

. . .
The above message persists even after adding avro-tools-1.7.3.jar to the
project classpath.

So, what is the easy way out of this? :-)
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB