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 # dev >> [VOTE] Avro release 1.7.1 (rc 0)


Copy link to this message
-
Re: [VOTE] Avro release 1.7.1 (rc 0)

Checksums match, packaging looks good.  My projects successfully compile
and test against the artifacts in the maven repo.
However, I am having issues completing unit tests for Java and
successfully building from the tarball.

TestDataFile.java fails for me, as it cannot find snappy for some reason.
This happens on trunk as well.  I have recently migrated to Java 7 on Mac
OS Lion.  With 1.6.x releases I was testing on Mac OSX Snow Leopard with
Java 6.
Tests run: 18, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.032 sec
<<< FAILURE!
runTestsInOrder[5](org.apache.avro.TestDataFile)  Time elapsed: 0.034 sec
<<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.xerial.snappy.Snappy
        at org.apache.avro.file.SnappyCodec.compress(SnappyCodec.java:43)
        at
org.apache.avro.file.DataFileStream$DataBlock.compressUsing(DataFileStream.
java:349)
        at
org.apache.avro.file.DataFileWriter.writeBlock(DataFileWriter.java:348)
        at
org.apache.avro.file.DataFileWriter.sync(DataFileWriter.java:360)
        at
org.apache.avro.file.DataFileWriter.flush(DataFileWriter.java:367)
        at
org.apache.avro.file.DataFileWriter.close(DataFileWriter.java:374)
        at
org.apache.avro.TestDataFile.testGenericWrite(TestDataFile.java:127)
        at
org.apache.avro.TestDataFile.runTestsInOrder(TestDataFile.java:89)
. . .

Caused by: java.lang.UnsatisfiedLinkError: no snappyjava in
java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
        at java.lang.Runtime.loadLibrary0(Runtime.java:845)
        at java.lang.System.loadLibrary(System.java:1084)
        at
org.xerial.snappy.SnappyNativeLoader.loadLibrary(SnappyNativeLoader.java:52
)
stdout has:
320 [main] INFO org.apache.avro.TestDataFile - Running with codec: null
Ignoring: org.apache.avro.file.DataFileWriter$AppendWriteException:
java.lang.NullPointerException: null of long in field longField of Test
479 [main] INFO org.apache.avro.TestDataFile - Running with codec: null
645 [main] INFO org.apache.avro.TestDataFile - Running with codec: null
653 [main] INFO org.apache.avro.TestDataFile - Running with codec:
deflate-0
Ignoring: org.apache.avro.file.DataFileWriter$AppendWriteException:
java.lang.NullPointerException: null of long in field longField of Test
736 [main] INFO org.apache.avro.TestDataFile - Running with codec:
deflate-0
756 [main] INFO org.apache.avro.TestDataFile - Running with codec:
deflate-0
758 [main] INFO org.apache.avro.TestDataFile - Running with codec:
deflate-1
Ignoring: org.apache.avro.file.DataFileWriter$AppendWriteException:
java.lang.NullPointerException: null of long in field longField of Test
812 [main] INFO org.apache.avro.TestDataFile - Running with codec:
deflate-1
899 [main] INFO org.apache.avro.TestDataFile - Running with codec:
deflate-1
902 [main] INFO org.apache.avro.TestDataFile - Running with codec:
deflate-9
Ignoring: org.apache.avro.file.DataFileWriter$AppendWriteException:
java.lang.NullPointerException: null of long in field longField of Test
950 [main] INFO org.apache.avro.TestDataFile - Running with codec:
deflate-9
956 [main] INFO org.apache.avro.TestDataFile - Running with codec:
deflate-9
958 [main] INFO org.apache.avro.TestDataFile - Running with codec: null
Ignoring: org.apache.avro.file.DataFileWriter$AppendWriteException:
java.lang.NullPointerException: null of long in field longField of Test
982 [main] INFO org.apache.avro.TestDataFile - Running with codec: null
989 [main] INFO org.apache.avro.TestDataFile - Running with codec: null
992 [main] INFO org.apache.avro.TestDataFile - Running with codec: snappy
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5
7)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:317)
        at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:219)
        at org.xerial.snappy.Snappy.<clinit>(Snappy.java:44)
        at org.apache.avro.file.SnappyCodec.compress(SnappyCodec.java:43)
        at
org.apache.avro.file.DataFileStream$DataBlock.compressUsing(DataFileStream.
java:349)

On 7/12/12 12:44 PM, "Doug Cutting" <[EMAIL PROTECTED]> wrote:

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