Hadoop icon indicating copy to clipboard operation
Hadoop copied to clipboard

Step2:Configuring Hadoop’s Java Home is not clear

Open buddhikac96 opened this issue 3 years ago • 3 comments

Hi @anjalysam. Thank you so much for the document. Still, it's not clear to me how to configure Hadoop's JAVA_HOME in Colab. I don't know what to do in the following step.

To set java path, go to /usr/local/hadoop-3.3.0/etc/hadoop/hadoop-env.sh then . . . export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/ . . .

I truly appreciate if you could update the document on how to do the above task in Google Colab.

Thank you.

buddhikac96 avatar Apr 03 '21 19:04 buddhikac96

Hi! I added the code below and problem solved. import os os.environ["JAVA_HOME"] = "/usr/lib/jvm/java-8-openjdk-amd64"

MohammadZp avatar Jul 08 '21 19:07 MohammadZp

Hi, Open the hadoop-env.sh (location: hadoop-3.3.0/etc/hadoop/hadoop-env.sh) and find the line start with export JAVA_HOME. Replace that line with export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/

SedaKUL avatar Jul 11 '21 13:07 SedaKUL

Hi, Open the hadoop-env.sh (location: hadoop-3.3.0/etc/hadoop/hadoop-env.sh) and find the line start with export JAVA_HOME. Replace that line with export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/

I tried your way but it didn't work. However, when I tried with the way @MohammadZp proposed, it worked. I just don't understand why

tienlonghungson avatar Oct 10 '21 11:10 tienlonghungson