Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Need Assistance in Creating sqoop incremental job

Need Assistance in Creating sqoop incremental job

New Contributor

I have table in MySql having four column out of three are primary key. The table need to import in Hive, how to create incremental import job for the table.

Table

mysql> desc titles;

+-----------+-------------+------+-----+---------+-------+

| Field | Type | Null | Key | Default | Extra |

+-----------+-------------+------+-----+---------+-------+

| emp_no | int(11) | NO | PRI | NULL | |

| title | varchar(50) | NO | PRI | NULL | |

| from_date | date | NO | PRI | NULL | |

| to_date | date | YES | | NULL | |

+-----------+-------------+------+-----+---------+-------+

The table does not have the unique values.

For example:

mysql> select * from titles where emp_no='10007';

+--------+--------------+------------+------------+

| emp_no | title | from_date | to_date |

+--------+--------------+------------+------------+

| 10007 | Senior Staff | 1996-02-11 | 9999-01-01 |

| 10007 | Staff | 1989-02-10 | 1996-02-11

| +--------+--------------+------------+------------+

How the incremental import job can be create for this table?

Don't have an account?
Coming from Hortonworks? Activate your account here