Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step2:Configuring Hadoop’s Java Home is not clear #1

Open
buddhikac96 opened this issue Apr 3, 2021 · 3 comments
Open

Step2:Configuring Hadoop’s Java Home is not clear #1

buddhikac96 opened this issue Apr 3, 2021 · 3 comments

Comments

@buddhikac96
Copy link

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.

@MohammadZp
Copy link

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

@SedaKUL
Copy link

SedaKUL commented Jul 11, 2021

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/

@tienlonghungson
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants