1、安装java
sudo apt-get install default-jre
sudo apt-get install default-jdk
2、添加环境变量
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386
3、运行hadoop
./bin/hadoop version
时间: 2024-10-27 12:43:17
1、安装java
sudo apt-get install default-jre
sudo apt-get install default-jdk
2、添加环境变量
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386
3、运行hadoop
./bin/hadoop version