Posts: 7
Registered: ‎03-30-2015
ERROR orm.CompilationManager: Please install a JDK and set $JAVA_HOME to use it.



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 Me Too'd this topic