我在Ubuntu20.04中安装了Hadood3.2.1,但出现了一个错误

hkmswyz6  于 2021-05-27  发布在  Hadoop
关注(0)|答案(1)|浏览(356)

我是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”
14ifxucb

14ifxucb1#

看起来您可能缺少hadoop所需的一个环境变量。它找不到hadoop本机库的jar文件。如需更精确的安装,请遵循以下条款,
https://hadooptutorials.info/2020/10/05/part-1-apache-hadoop-installation-on-single-node-cluster-with-google-cloud-virtual-machine/

相关问题