Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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.

Labels (4)
3 Replies
Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

Hi Sabrina,

 

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

 

Thanks and regards,

Imanol.

Anonymous
Not applicable
Author

Hello,

Thanks for your feedback and sharing your solution here.

Best regards

Sabrina