eclipse - tsqoopImport required jdk exception -
i using tsqoopimport copy data mysql hdfs. when running job talend works fine. when invoking talend job using eclipse getting following error:
2017-04-07 10:39:53 info batchjob:172 - 10:39:53,250 info [sqoop] running sqoop version: 1.4.5 2017-04-07 10:39:53 info batchjob:172 - 10:39:53,281 warn [connfactory] $sqoop_conf_dir has not been set in environment. cannot check additional configuration. 2017-04-07 10:39:53 info batchjob:172 - 10:39:53,301 info [mysqlmanager] preparing use mysql streaming resultset. 2017-04-07 10:39:53 info batchjob:172 - 10:39:53,301 info [codegentool] beginning code generation 2017-04-07 10:39:53 info batchjob:172 - 10:39:53,331 info [sqlmanager] executing sql statement: select t.* employees
t limit 1 2017-04-07 10:39:53 info batchjob:172 - 10:39:53,351 info [sqlmanager] executing sql statement: select t.* employees
t limit 1 2017-04-07 10:39:53 info batchjob:172 - 10:39:53,361 info [compilationmanager] $hadoop_mapred_home not set 2017-04-07 10:39:53 info batchjob:172 - 10:39:53,361 error [compilationmanager] seems though running sqoop jre. 2017-04-07 10:39:53 info batchjob:172 - 10:39:53,361 error [compilationmanager] sqoop requires jdk can compile java code. 2017-04-07 10:39:53 info batchjob:172 - 10:39:53,361 error [compilationmanager] please install jdk , set $java_home use it. 2017-04-07 10:39:53 info batchjob:172 - 10:39:53,361 error [importtool] encountered ioexception running import job: java.io.ioexception: not start java compiler. 2017-04-07 10:39:53 info batchjob:172 - @ org.apache.sqoop.orm.compilationmanager.compile(compilationmanager.java:187) 2017-04-07 10:39:53 info batchjob:172 - @ org.apache.sqoop.tool.codegentool.generateorm(codegentool.java:97) 2017-04-07 10:39:53 info batchjob:172 - @ org.apache.sqoop.tool.importtool.importtable(importtool.java:478) 2017-04-07 10:39:53 info batchjob:172 - @ org.apache.sqoop.tool.importtool.run(importtool.java:601) 2017-04-07 10:39:53 info batchjob:172 - @ org.apache.sqoop.sqoop.run(sqoop.java:143) 2017-04-07 10:39:53 info batchjob:172 - @ org.apache.hadoop.util.toolrunner.run(toolrunner.java:65) 2017-04-07 10:39:53 info batchjob:172 - @ org.apache.sqoop.sqoop.runsqoop(sqoop.java:179) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.tsqoopimport_1process(t_jdbc_dbarchival.java:37943) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.tjava_8process(t_jdbc_dbarchival.java:18672) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.trunjob_9process(t_jdbc_dbarchival.java:18530) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.trunjob_15process(t_jdbc_dbarchival.java:18326) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.tjava_9process(t_jdbc_dbarchival.java:10684) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.thashinput_1process(t_jdbc_dbarchival.java:10467) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.tmysqlinput_1process(t_jdbc_dbarchival.java:8081) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.tmysqlconnection_2process(t_jdbc_dbarchival.java:5136) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.tjdbcconnection_1process(t_jdbc_dbarchival.java:4976) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.runjobintos(t_jdbc_dbarchival.java:43966) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_jdbc_dbarchival_1_0.t_jdbc_dbarchival.runjob(t_jdbc_dbarchival.java:43127) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_tablevalidation_1_2.t_tablevalidation.trunjob_2process(t_tablevalidation.java:5054) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_tablevalidation_1_2.t_tablevalidation.tjdbcconnection_1process(t_tablevalidation.java:4589) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_tablevalidation_1_2.t_tablevalidation.tmysqlinput_1process(t_tablevalidation.java:3692) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_tablevalidation_1_2.t_tablevalidation.tmysqlinput_5process(t_tablevalidation.java:2762) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_tablevalidation_1_2.t_tablevalidation.tjava_1process(t_tablevalidation.java:1983) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_tablevalidation_1_2.t_tablevalidation.trunjob_4process(t_tablevalidation.java:1857) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_tablevalidation_1_2.t_tablevalidation.tmysqlconnection_1process(t_tablevalidation.java:1545) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_tablevalidation_1_2.t_tablevalidation.runjobintos(t_tablevalidation.java:9451) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.t_tablevalidation_1_2.t_tablevalidation.runjob(t_tablevalidation.java:9136) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.masterarchival_1_0.masterarchival.trunjob_2process(masterarchival.java:2209) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.masterarchival_1_0.masterarchival.tjava_1process(masterarchival.java:1033) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.masterarchival_1_0.masterarchival.tmysqlconnection_1process(masterarchival.java:900) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.masterarchival_1_0.masterarchival.trunjob_3process(masterarchival.java:757) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.masterarchival_1_0.masterarchival.runjobintos(masterarchival.java:3802) 2017-04-07 10:39:53 info batchjob:172 - @ multiple_aug8.masterarchival_1_0.masterarchival.main(masterarchival.java:3610)
note: have mentioned jdk liberary in eclipse still getting error.
Comments
Post a Comment