Error while saveAsTextFile with Snappy Codec

scala

#1

Hi,

I am getting below error while saving the RDD as text file in cloudera vm.

endRDD.saveAsTextFile("", classOf[org.apache.hadoop.io.compress.SnappyCodec])

Error:
java.lang.UnsatisfiedLinkError: org.apache.hadoop.util.NativeCodeLoader.buildSupportsSnappy()Z

Could someone help me?

Thanks,


#2

@krishnaB,

Syntax is as below.
rdd.saveAsTextFile(“path”,classOf[org.apache.hadoop.io.compress.SnappyCodec])

Hope this discussion will help you.