Error matching java datatypes with tSqoopImport

Four Stars

Error matching java datatypes with tSqoopImport

Hi,

 

I'm using tSqoopImport in Talend Open Studio for BigData (v. 6.3.1) to import data from SQL Server to Avro files in HDFS.

I'm getting in trouble with the date type columns of SQL Server, because sqoop matches those colums to Long type.

When I use the option --map-column-java date_column1=String,date_column2=String... to match the date type to string, it works fine running into Sqoop line commands.

But when I try to do the same in talend, it seems to do nothing:

Advanced settings -> check Define Java mapping and type:

Column_name       Java_type

"date_column1"      "String"

...

Any idea how to resolve this issue?

Thanks in advance.

Moderator

Re: Error matching java datatypes with tSqoopImport

Hello,

Could you please try to map your SQL types to appropriate Hive types through "Define hive mapping" to see if it works?

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.
Four Stars

Re: Error matching java datatypes with tSqoopImport

Hi Sabrina,

 

Finally we've resolved to execute sqoop command using tSSH component.

 

Thanks and regards,

Imanol.

Moderator

Re: Error matching java datatypes with tSqoopImport

Hello,

Thanks for your feedback and sharing your solution here.

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

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