本文介绍了本地snappy库不可用:这个版本的libhadoop是建立在没有活泼的支持。同时runnig查询throgh配置单元的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

java.lang.RuntimeException:本地snappy库不可用:这个版本的libhadoop是在没有快速支持的情况下构建的。
at org.apache.hadoop.io.compress.SnappyCodec.checkNativeCodeLoaded(SnappyCodec.java:65)
at org.apache.hadoop.io.compress.SnappyCodec.getCompressorType(SnappyCodec.java:134)
at org.apache.hadoop.io.compress.CodecPool.getCompressor(CodecPool.java:150)



构建libhadoop.so支持snappy。


祝您好运。


java.lang.RuntimeException: native snappy library not available: this version of libhadoop was built without snappy support.at org.apache.hadoop.io.compress.SnappyCodec.checkNativeCodeLoaded(SnappyCodec.java:65) at org.apache.hadoop.io.compress.SnappyCodec.getCompressorType(SnappyCodec.java:134) at org.apache.hadoop.io.compress.CodecPool.getCompressor(CodecPool.java:150)

i am using hadoop 2.7.3 version and hive 2.1.1 version

解决方案

I have the same problem with you and I solved it.

As the error hint, the problem is libhadoop.so library that is not support snappy when building. When hadoop invoke libhadoop.so's public static native boolean buildSupportsSnappy(), it will return false. So, we get the error.

Good luck.

这篇关于本地snappy库不可用:这个版本的libhadoop是建立在没有活泼的支持。同时runnig查询throgh配置单元的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 05:07