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.

Who agreed with this topic

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

Explorer

Hi 

 

I have installed sqoop version 1.4.5-cdh5.4.2 and mysql-connector-java.jar version mysql-connector-java-5.1.31.jar in /usr/lib/sqoop/lib

 

I am getting the following error. Please help me with the error. 

 

15/05/26 01:41:03 ERROR orm.CompilationManager: It seems as though you are running sqoop with a JRE.
15/05/26 01:41:03 ERROR orm.CompilationManager: Sqoop requires a JDK that can compile Java code.
15/05/26 01:41:03 ERROR orm.CompilationManager: Please install a JDK and set $JAVA_HOME to use it.
15/05/26 01:41:03 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Could not start Java compiler.
at org.apache.sqoop.orm.CompilationManager.compile(CompilationManager.java:187)
at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:97)
at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:478)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
at org.apache.sqoop.Sqoop.main(Sqoop.java:236)

 

I appreciate your help. 

 

Thank you, 

 

 

Who agreed with this topic