Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2543

facing test failure while building apache-kafka from source

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 0.8.2.1
    • 0.8.1.2
    • build
    • None
    • Linux ppc 64 le
    • Important

    Description

      I have run below steps from github https://github.com/apache/kafka to building apache kafka branch 0.8.1.2
      cd source-code
      gradle
      ./gradlew jar
      ./gradlew srcJar
      ./gradlew test

      error :
      org.apache.kafka.common.record.MemoryRecordsTest > testIterator[2] FAILED
      org.apache.kafka.common.KafkaException: java.lang.reflect.InvocationTargetException
      at org.apache.kafka.common.record.Compressor.wrapForOutput(Compressor.java:217)
      at org.apache.kafka.common.record.Compressor.<init>(Compressor.java:73)
      at org.apache.kafka.common.record.Compressor.<init>(Compressor.java:77)
      at org.apache.kafka.common.record.MemoryRecords.<init>(MemoryRecords.java:43)
      at org.apache.kafka.common.record.MemoryRecords.emptyRecords(MemoryRecords.java:51)
      at org.apache.kafka.common.record.MemoryRecords.emptyRecords(MemoryRecords.java:55)
      at org.apache.kafka.common.record.MemoryRecordsTest.testIterator(MemoryRecordsTest.java:42)

      Caused by:
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at org.apache.kafka.common.record.Compressor.wrapForOutput(Compressor.java:213)
      ... 6 more

      Caused by:
      java.lang.UnsatisfiedLinkError: /tmp/snappy-unknown-fe798961-3b66-41f3-808a-68ebd27cc82d-libsnappyjava.so: /tmp/snappy-u nknown-fe798961-3b66-41f3-808a-68ebd27cc82d-libsnappyjava.so: cannot open shared object file: No such file or directory (Possible ca use: endianness mismatch)
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
      at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
      at java.lang.Runtime.load0(Runtime.java:795)
      at java.lang.System.load(System.java:1062)
      at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:166)
      at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:145)
      at org.xerial.snappy.Snappy.<clinit>(Snappy.java:47)
      at org.xerial.snappy.SnappyOutputStream.<init>(SnappyOutputStream.java:90)
      at org.xerial.snappy.SnappyOutputStream.<init>(SnappyOutputStream.java:83)
      ... 11 more

      267 tests completed, 1 failed
      :clients:test FAILED

      please help me fix the failure test case

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gundun naresh gundu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified