EMR 上的 Snappy 不可用错误
Snappy not available error on EMR
我在具有一个主节点和一个核心节点的 EMR 上使用 Spark,我面临以下问题:
java.lang.RuntimeException: native snappy library not available: this version of libhadoop was built without snappy support.
我把java.library.path设为/usr/lib/hadoop/lib/native/:/usr/lib/hadoop-lzo/lib/native/
checknative 在主节点和核心节点上给我这个:
16/04/28 15:03:27 INFO bzip2.Bzip2Factory: Successfully loaded & initialized native-bzip2 library system-native
16/04/28 15:03:27 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library
Native library checking:
hadoop: true /usr/lib/hadoop/lib/native/libhadoop.so.1.0.0
zlib: true /lib64/libz.so.1
snappy: true /usr/lib/hadoop/lib/native/libsnappy.so.1
lz4: true revision:99
bzip2: true /lib64/libbz2.so.1
openssl: true /usr/lib64/libcrypto.so
EMR 版本:emr-4.6.0
Hadoop distribution:Amazon 2.7.2
应用:Spark 1.6.1
我终于找到了解决方案,我设置了 LD_LIBRARY_PATH 现在可以使用了!!
export LD_LIBRARY_PATH=/usr/lib/hadoop/lib/native/
我在所有节点上都做了这个操作。我希望它能帮助别人 :) !
我在具有一个主节点和一个核心节点的 EMR 上使用 Spark,我面临以下问题:
java.lang.RuntimeException: native snappy library not available: this version of libhadoop was built without snappy support.
我把java.library.path设为/usr/lib/hadoop/lib/native/:/usr/lib/hadoop-lzo/lib/native/
checknative 在主节点和核心节点上给我这个:
16/04/28 15:03:27 INFO bzip2.Bzip2Factory: Successfully loaded & initialized native-bzip2 library system-native
16/04/28 15:03:27 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library
Native library checking:
hadoop: true /usr/lib/hadoop/lib/native/libhadoop.so.1.0.0
zlib: true /lib64/libz.so.1
snappy: true /usr/lib/hadoop/lib/native/libsnappy.so.1
lz4: true revision:99
bzip2: true /lib64/libbz2.so.1
openssl: true /usr/lib64/libcrypto.so
EMR 版本:emr-4.6.0
Hadoop distribution:Amazon 2.7.2
应用:Spark 1.6.1
我终于找到了解决方案,我设置了 LD_LIBRARY_PATH 现在可以使用了!!
export LD_LIBRARY_PATH=/usr/lib/hadoop/lib/native/
我在所有节点上都做了这个操作。我希望它能帮助别人 :) !