Execute sqoop import from command line

Execute sqoop import from command line

Hi,
we have developed a job that imports from sql server to hdfs using tSqoopImport.
when i run the job in talend studio it works fine, but when i build job and execute the bat file in command line i get exception:
java.lang.exception: the sqoop import job has failed. Please check the logs.
the sqoop log doesn't have any errors.
what could be the problem?
thanks
Moderator

Re: Execute sqoop import from command line

Hi,
 Have you checked out "die on error" option to make sure that there is no error printed on console? Can you successfully get the processing data from sql server into hdfs?
If the job does work fine in talend studio, the job work flow should be ok with no error.
Did you run your job script  .bat file on the same machine with studio?
Screenshots of your job setting will be preferred. On which build version you got that?
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.

2019 GARTNER 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

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now