Sqoop Import doesn't work from build job in cmd

Highlighted
One Star

Sqoop Import doesn't work from build job in cmd

Hi,
I have developed  job to import data from mysql to hdfs using tSqoopImport component. When I run this job in talend studio it perfectly works.
When  I build job and try to execute bat file it throws an error saying 
"12:07:32,789 ERROR [CompilationManager] Sqoop requires a JDK that can compile Ja
va code.
12:07:32,790 ERROR [CompilationManager] Please install a JDK and set $JAVA_HOME
to use it.
12:07:32,790 ERROR [ImportTool] Encountered IOException running import job: java
.io.IOException: Could not start Java compiler."
I am trying to execute this bat file in Windows 7 environment and using JAVA API mode for SQOOP component.
My JAVA_HOME variable is set to "C:\Program Files\Java\jdk1.7.0_45" and PATH to "C:\Program Files\Java\jdk1.7.0_45\bin"
Please help me to solve this issue.
Moderator

Re: Sqoop Import doesn't work from build job in cmd

Hi,

Did you follow up document: TalendHelpCenter:How to build Jobs to build your job? On which Talend Big data official version did you get that?
Please take a look at a related forum about:Wrting Data from MS-SQL server to HDFS using Sqoop Component.

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Sqoop Import doesn't work from build job in cmd

Thanks Sabrina for reply.
I have already gone through links you have provided. My other build jobs run perfectly in windows OS , only Sqoop with build job is causing problem.
 I am using Big data open studio version 5.6.1.20141207_1530 .
Moderator

Re: Sqoop Import doesn't work from build job in cmd

Hi pras,

Have you already checked  "Java interpreter" in studio and Java interpreter path is JDK path not JRE?

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Sqoop Import doesn't work from build job in cmd

Hi Sabrina,
Yes, It is set to JDK path and not to JRE path. This is Java interpreter path in studio:- "C:\Program Files\Java\jdk1.7.0_45\bin\java.exe".
Moderator

Re: Sqoop Import doesn't work from build job in cmd

Hi,

Is it Ok after restarting your studio?

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Sqoop Import doesn't work from build job in cmd

Hi Sabrina,
Yes, Java Interpreter path remain same after restarting  studio.

Re: Sqoop Import doesn't work from build job in cmd

Hi, did you find solution for that issue?
One Star

Re: Sqoop Import doesn't work from build job in cmd

Hello, could you please write the solution for that issue if you find it?
Founder of DecorSector.com, Brand-New Home Decoration Website. & Try It Home Garden Website.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog