Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here. Want to know more about what has changed? Check out the Community News blog.

ERROR orm.CompilationManager: Please install a JDK and set $JAVA_HOME to use it.

Re: ERROR orm.CompilationManager: Please install a JDK and set $JAVA_HOME to use it.

Contributor

Hi Losetty,

 

 

Try placing   ojdbc6.jar file into /opt/cloudera/parcels/CDH/lib/sqoop/lib

 

Using below command find the java versions installed on your OS and select appropritate java jdk version. You may also copy the java path defined when you use below command and use it to set actual Java_Home path.

 

$ update-alternatives --config java

 

 

 

Re: ERROR orm.CompilationManager: Please install a JDK and set $JAVA_HOME to use it.

New Contributor

I was facing same issue so i followed below steps:-

 

1)insatlled jdk from oracle

2)copied jdk to /usr/local/java folder

3)modified JAVA_HOME inside ~/.bashrc and gave source ~/.bashrc

4)modified JAVA_HOME inside hadoop-env.sh

 

and all got sorted.

Re: ERROR orm.CompilationManager: Please install a JDK and set $JAVA_HOME to use it.

New Contributor

I was facing same issue so i followed below steps:- 1)insatlled jdk from oracle 2)copied jdk to /usr/local/java folder 3)modified JAVA_HOME inside ~/.bashrc and gave source ~/.bashrc 4)modified JAVA_HOME inside hadoop-env.sh and all got sorted.