我是linux和hadoop的新手。我在ubuntu20.04中安装了hadoop-3.2.1,我在网站上遵循了这些步骤https://computingforgeeks.com/how-to-install-apache-hadoop-hbase-on-ubuntu/
运行此命令时出现以下错误:
~$ hadoop version
Error: Could not find or load main class ”-Djava.library.path=.usr.local.hadoop..lib.native”
Caused by: java.lang.ClassNotFoundException: ”-Djava/library/path=/usr/local/hadoop//lib/native”
1条答案
按热度按时间14ifxucb1#
看起来您可能缺少hadoop所需的一个环境变量。它找不到hadoop本机库的jar文件。如需更精确的安装,请遵循以下条款,
https://hadooptutorials.info/2020/10/05/part-1-apache-hadoop-installation-on-single-node-cluster-with-google-cloud-virtual-machine/