java.lang.UnsatisfiedLinkError: org.xerial.snappy.SnappyNative.uncompressedLength(Ljava/nio/ByteBuffer;II)I

Stack Overflow | Matt Pollock | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to avoid UnsatisfiedLinkError when loading Parquet data into PIG

    Stack Overflow | 6 months ago | Matt Pollock
    java.lang.UnsatisfiedLinkError: org.xerial.snappy.SnappyNative.uncompressedLength(Ljava/nio/ByteBuffer;II)I

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.UnsatisfiedLinkError

      org.xerial.snappy.SnappyNative.uncompressedLength(Ljava/nio/ByteBuffer;II)I

      at org.xerial.snappy.SnappyNative.uncompressedLength()
    2. snappy-java
      Snappy.uncompressedLength
      1. org.xerial.snappy.SnappyNative.uncompressedLength(Native Method)
      2. org.xerial.snappy.Snappy.uncompressedLength(Snappy.java:561)
      2 frames
    3. org.apache.parquet
      NonBlockedDecompressorStream.read
      1. org.apache.parquet.hadoop.codec.SnappyDecompressor.decompress(SnappyDecompressor.java:62)
      2. org.apache.parquet.hadoop.codec.NonBlockedDecompressorStream.read(NonBlockedDecompressorStream.java:51)
      2 frames
    4. Java RT
      DataInputStream.readFully
      1. java.io.DataInputStream.readFully(DataInputStream.java:195)
      2. java.io.DataInputStream.readFully(DataInputStream.java:169)
      2 frames
    5. org.apache.parquet
      ParquetLoader.getNext
      1. org.apache.parquet.bytes.BytesInput$StreamBytesInput.toByteArray(BytesInput.java:204)
      2. org.apache.parquet.column.impl.ColumnReaderImpl.readPageV1(ColumnReaderImpl.java:591)
      3. org.apache.parquet.column.impl.ColumnReaderImpl.access$300(ColumnReaderImpl.java:60)
      4. org.apache.parquet.column.impl.ColumnReaderImpl$3.visit(ColumnReaderImpl.java:540)
      5. org.apache.parquet.column.impl.ColumnReaderImpl$3.visit(ColumnReaderImpl.java:537)
      6. org.apache.parquet.column.page.DataPageV1.accept(DataPageV1.java:96)
      7. org.apache.parquet.column.impl.ColumnReaderImpl.readPage(ColumnReaderImpl.java:537)
      8. org.apache.parquet.column.impl.ColumnReaderImpl.checkRead(ColumnReaderImpl.java:529)
      9. org.apache.parquet.column.impl.ColumnReaderImpl.consume(ColumnReaderImpl.java:641)
      10. org.apache.parquet.column.impl.ColumnReaderImpl.<init>(ColumnReaderImpl.java:357)
      11. org.apache.parquet.column.impl.ColumnReadStoreImpl.newMemColumnReader(ColumnReadStoreImpl.java:82)
      12. org.apache.parquet.column.impl.ColumnReadStoreImpl.getColumnReader(ColumnReadStoreImpl.java:77)
      13. org.apache.parquet.io.RecordReaderImplementation.<init>(RecordReaderImplementation.java:270)
      14. org.apache.parquet.io.MessageColumnIO$1.visit(MessageColumnIO.java:135)
      15. org.apache.parquet.io.MessageColumnIO$1.visit(MessageColumnIO.java:101)
      16. org.apache.parquet.filter2.compat.FilterCompat$NoOpFilter.accept(FilterCompat.java:154)
      17. org.apache.parquet.io.MessageColumnIO.getRecordReader(MessageColumnIO.java:101)
      18. org.apache.parquet.hadoop.InternalParquetRecordReader.checkRead(InternalParquetRecordReader.java:140)
      19. org.apache.parquet.hadoop.InternalParquetRecordReader.nextKeyValue(InternalParquetRecordReader.java:214)
      20. org.apache.parquet.hadoop.ParquetRecordReader.nextKeyValue(ParquetRecordReader.java:227)
      21. org.apache.parquet.pig.ParquetLoader.getNext(ParquetLoader.java:230)
      21 frames
    6. org.apache.pig
      Main.main
      1. org.apache.pig.impl.io.ReadToEndLoader.getNextHelper(ReadToEndLoader.java:251)
      2. org.apache.pig.impl.io.ReadToEndLoader.getNext(ReadToEndLoader.java:231)
      3. org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POLoad.getNextTuple(POLoad.java:137)
      4. org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator.processInput(PhysicalOperator.java:307)
      5. org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POLimit.getNextTuple(POLimit.java:122)
      6. org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator.processInput(PhysicalOperator.java:307)
      7. org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POStore.getNextTuple(POStore.java:159)
      8. org.apache.pig.backend.hadoop.executionengine.fetch.FetchLauncher.runPipeline(FetchLauncher.java:157)
      9. org.apache.pig.backend.hadoop.executionengine.fetch.FetchLauncher.launchPig(FetchLauncher.java:81)
      10. org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:302)
      11. org.apache.pig.PigServer.launchPlan(PigServer.java:1431)
      12. org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1416)
      13. org.apache.pig.PigServer.storeEx(PigServer.java:1075)
      14. org.apache.pig.PigServer.store(PigServer.java:1038)
      15. org.apache.pig.PigServer.openIterator(PigServer.java:951)
      16. org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:754)
      17. org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:376)
      18. org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:230)
      19. org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205)
      20. org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:81)
      21. org.apache.pig.Main.run(Main.java:631)
      22. org.apache.pig.Main.main(Main.java:177)
      22 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    8. Hadoop
      RunJar.main
      1. org.apache.hadoop.util.RunJar.run(RunJar.java:221)
      2. org.apache.hadoop.util.RunJar.main(RunJar.java:136)
      2 frames