Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

What is the $JAVA_HOME #112

Closed
applar opened this issue Jul 18, 2016 · 4 comments
Closed

What is the $JAVA_HOME #112

applar opened this issue Jul 18, 2016 · 4 comments

Comments

@applar
Copy link

applar commented Jul 18, 2016

What is the $JAVA_HOME in Building for Spark 2.X?

@gnosisyuw
Copy link

JAVA_HOME is an environment variable which is used to locate java while executing program.

@applar
Copy link
Author

applar commented Jul 19, 2016

Thanks. I know that JAVA_HOME is an environment variable. But, I don't know which document it stand for. I want to set the environment variable, and, I don't know what I should do.

@gnosisyuw
Copy link

@applar I think the document you are looking for is spark-env.sh.

@arundasan91
Copy link
Contributor

Hello,

If you do cd /usr/lib/jvm/ and explore, you'll see what versions of Java packages are installed. I understand that you know about environment variables. If I were you, I would set the environment variable in .bashrc file in the root folder and do source .bashrc to source it.

If the Java version is java-1.7.0-openjdk-amd64 I would add this line to .bashrc file.

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

To be honest I do not know if you are looking for this answer, if I misunderstood could you please elaborate so that I can try to help ?

Thanks,
Arun

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

No branches or pull requests

4 participants