question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Snappy support missing

See original GitHub issue

Hi guys,

My avro data in kafka is compressed with Snappy. Kafka-ui prints this stacktrace when I load messages:

java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
	at org.xerial.snappy.SnappyInputStream.hasNextChunk(SnappyInputStream.java:435)
	at org.xerial.snappy.SnappyInputStream.read(SnappyInputStream.java:466)
	at java.base/java.io.DataInputStream.readByte(DataInputStream.java:270)

I fixed this locally by adding

        <dependency>
            <groupId>org.xerial.snappy</groupId>
            <artifactId>snappy-java</artifactId>
            <version>1.1.7.3</version>
        </dependency>

Which gave me something like:

java.lang.UnsatisfiedLinkError: /tmp/snappy-1.1.7-5cec5405-2ce7-4046-a8bd-922ce96534a0-libsnappyjava.so: 
Error loading shared library ld-linux-x86-64.so.2: No such file or directory

Which I solved by adding gcompat to the apk add command.

Would be awesome to have this added to this amazing project.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JoeryHcommented, Dec 31, 2021

Hi 👋

0reactions
Haaroleancommented, Feb 4, 2022

@JoeryH glad it works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions (FAQ) - Snappy Gifts
If you believe that your gift may be lost in transit, reach out to our Snappy Support team here for a live update...
Read more >
Big Endian support missing in snappy · Issue #116 · airlift ... - GitHub
Correct, this code does not support big endian. Based on our experimentation, adding big endian support would either make the code very complex,...
Read more >
SnappyEats Online Ordering System for Restaurants
The restaurant will need to handle all support requests including, and not limited to, refunds, missing items, issues with the food quality, delivery...
Read more >
Snappy Driver Installer - Install and Update Drivers for Free
Snappy Driver Installer is a free driver updater with a huge driver collection for offline use. ... Install missing drivers and update old...
Read more >
Installing SnapPy — SnapPy 3.0.3 documentation
Simply download and run InstallSnapPy.exe. ... We support Python 3.6 and up. ... If it has trouble when compiling CyOpenGL, you are probably...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found