0
votes

Actually, I have my data in Teradata table. I have sqooped that teradata table data into Hive using sqoop-import command.

But, my teradata table will get the data on a daily basis. So, there is a need to sqoop the newly added data i.e, incremental data from teradata into Hive table.

Can anyone please suggest me some solutions to achieve this ...

1
Can you elaborate, you want to incremente the hive table on daily basis ? - charan tej
Do you have some sort of insert/update timestamp in your Teradata table? - Andrew

1 Answers

0
votes

If you have a any column similar to row-id/timestamp in your table, then you can use:

--incremental [mode] --last-value [value] --check-column [col]

If you have a saved job for this, you can skip --last-value as it will be automatically maintained.

--incremental [mode] has two modes. lastmodified and append, you can use any one based on your requirement.