spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qiao, Richard" <>
Subject Re: Add snappy support for spark in Windows
Date Mon, 04 Dec 2017 08:12:19 GMT
It seems a common mistake that the path is not accessible by workers/executors.

Best regards

Sent from my iPhone

On Dec 3, 2017, at 22:32, Junfeng Chen <<>>

I am working on importing snappy compressed json file into spark rdd or dataset. However I
meet this error: java.lang.UnsatisfiedLinkError: org.apache.hadoop.util.NativeCodeLoader.buildSupportsSnappy()Z

I have set the following configuration:

SparkConf conf = new SparkConf()
            .setAppName("normal spark")
            .set("", "<>.SnappyCompressionCodec")

Where D:\Downloads\spark-2.2.0-bin-hadoop2.7 is my spark unpacked path, and I can find the
snappy jar file snappy-0.2.jar and snappy-java- in


However nothing works and even the error message not change.

How can I fix it?

ref of stackoverflow:

Junfeng Chen

The information contained in this e-mail is confidential and/or proprietary to Capital One
and/or its affiliates and may only be used solely in performance of work or services for Capital
One. The information transmitted herewith is intended only for use by the individual or entity
to which it is addressed. If the reader of this message is not the intended recipient, you
are hereby notified that any review, retransmission, dissemination, distribution, copying
or other use of, or taking of any action in reliance upon this information is strictly prohibited.
If you have received this communication in error, please contact the sender and delete the
material from your computer.
View raw message