[resolved] How can I export tables from MySQL to Hive/Hadoop?

Highlighted
One Star

[resolved] How can I export tables from MySQL to Hive/Hadoop?

How can I export tables from MySQL to Hive/Hadoop? Which components will help? like tHiveConnection,tHiveRow or tHiveClose?
Thank you for your replies.

Accepted Solutions
Highlighted
Employee

Re: [resolved] How can I export tables from MySQL to Hive/Hadoop?

Please note that a tHiveInput component is planned to get released on 5.0.

View solution in original post


All Replies
Highlighted
Employee

Re: [resolved] How can I export tables from MySQL to Hive/Hadoop?

Hi,
Absolutely, you can combine a tMySQLInput and a tHiveRow to do that!
It would look like that:
tHiveConnection
|
|
v
tMySQLInput ----> tHiveRow
|
|
v
tHiveClose
Highlighted
One Star

Re: [resolved] How can I export tables from MySQL to Hive/Hadoop?

Could you provide more detail on how to use the tHiveRow component here? You can't do a single-row insert in Hive/HQL.
Thanks.
---Paul
Highlighted
One Star

Re: [resolved] How can I export tables from MySQL to Hive/Hadoop?

Could you provide more detail on how to use the tHiveRow component here? You can't do a single-row insert in Hive/HQL.
Thanks.
---Paul

vgalopin is right,but this method is inefficient,data is imported one by one.Actually, I recommend "load overwrite" command used in tHiveRow's query like this "load data local inpath '"+context.hive_file_dir+"t_test.txt' overwrite into table t_test"
Highlighted
One Star

Re: [resolved] How can I export tables from MySQL to Hive/Hadoop?

Through using this tool(Talend),I find it supports hive/hadoop not very well.Free 4.2.3 version only provide three components,which are tHiveConnection,tHiveRow and tHiveClose.
Highlighted
Employee

Re: [resolved] How can I export tables from MySQL to Hive/Hadoop?

Please note that a tHiveInput component is planned to get released on 5.0.

View solution in original post

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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog