gpt4 book ai didi

java - 如何在Hadoop中加载 native 库

转载 作者:行者123 更新时间:2023-12-02 21:13:54 25 4
gpt4 key购买 nike

在此命令上hadoop checknative -a
输出是:

16/09/11 09:03:15 WARN util.NativeCodeLoader: Unable to load native-hadoop   library for your platform... using builtin-java classes where applicable  
Native library checking:
hadoop: false
zlib: false
snappy: false
lz4: false
bzip2: false
openssl: false
16/09/11 09:03:15 INFO util.ExitUtil: Exiting with status 1

如何解决

最佳答案

hadoop官方网站上提供了指南:https://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-common/NativeLibraries.html

It is fairly easy to use the native hadoop library:

  1. Review the components.
  2. Review the supported platforms.
  3. Either download a hadoop release, which will include a pre-built version of the native hadoop library, or build your own version of the native hadoop library. Whether you download or build, the name for the library is the same: libhadoop.so
  4. Install the compression codec development packages (>zlib-1.2, >gzip-1.2): + If you download the library, install one or more development packages - whichever compression codecs you want to use with your deployment. + If you build the library, it is mandatory to install both development packages.
  5. Check the runtime log files.

关于java - 如何在Hadoop中加载 native 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39432749/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com