Macos Hadoop 3.0.0没有lib/native文件夹。警告util.NativeCodeLoader
我在mac上安装hadoop,用于本地小任务 启动/hstop时,获取“Macos Hadoop 3.0.0没有lib/native文件夹。警告util.NativeCodeLoader,macos,hadoop,hadoop3,hadoop-native-library,Macos,Hadoop,Hadoop3,Hadoop Native Library,我在mac上安装hadoop,用于本地小任务 启动/hstop时,获取“WARN util.NativeCodeLoader:无法为您的平台加载本机hadoop库…在适用的情况下使用内置java类” 尝试了以下链接中的选项,为lib/native重命名文件夹/路径。已将libexec/重命名为lib/,但脚本中的错误表明libexec应该是正确的。 但是,在hadoop 3.0.0中,结构如下: username-local:hadoop me$ pwd /usr/local/Cellar/h
WARN util.NativeCodeLoader:无法为您的平台加载本机hadoop库…在适用的情况下使用内置java类
”
尝试了以下链接中的选项,为lib/native重命名文件夹/路径。已将libexec/
重命名为lib/
,但脚本中的错误表明libexec应该是正确的。
但是,在hadoop 3.0.0中,结构如下:
username-local:hadoop me$ pwd
/usr/local/Cellar/hadoop
username-local:hadoop me$ ls
3.0.0 hdfs
username-local:hadoop me$ cd 3.0.0/
username-local:3.0.0 me$ ls
INSTALL_RECEIPT.json NOTICE.txt bin sbin
LICENSE.txt README.txt libexec
username-local:3.0.0 me$ cd libexec/
username-local:libexec me$ ls
bin etc libexec logs sbin share
username-local:libexec me$ cd libexec/
username-local:libexec me$ pwd
/usr/local/Cellar/hadoop/3.0.0/libexec/libexec
username-local:libexec me$ ls
hadoop-config.sh hdfs-config.sh tools
hadoop-functions.sh mapred-config.sh yarn-config.sh
hadoop-layout.sh.example shellprofile.d
username-local:libexec me$ cd ../etc/
username-local:etc me$ ls
hadoop
username-local:etc me$ cd hadoop/
username-local:hadoop me$ ls
capacity-scheduler.xml httpfs-log4j.properties mapred-site.xml
configuration.xsl httpfs-signature.secret shellprofile.d
container-executor.cfg httpfs-site.xml ssl-client.xml.example
core-site.xml kms-acls.xml ssl-server.xml.example
hadoop-env.sh kms-env.sh user_ec_policies.xml.template
hadoop-metrics2.properties kms-log4j.properties workers
hadoop-policy.xml kms-site.xml yarn-env.sh
hadoop-user-functions.sh.example log4j.properties yarn-site.xml
hdfs-site.xml mapred-env.sh
httpfs-env.sh mapred-queues.xml.template
username-local:hadoop me$
有什么想法吗?
多谢各位 首先,这个警告是可以忽略的。其次,不要重命名或删除任何内容。。。为什么不直接导出本机库的正确文件路径(假设是Homebrew下载的)?Hi@cricket_007感谢您的建议。我恢复了所有设置。我找不到库/本机路径或任何包含要导出的“本机”的文件夹。hadoop 3.0.0 mac版本中没有lib/文件夹。当我执行
jps
时,datanode没有运行,因此我想修复此警告,以防它是bug原因之一。您能否就hadoop 3.0.0本机库的正确文件路径提供一些建议?