Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Sqoop import with conditions

avatar
Rising Star
 
1 ACCEPTED SOLUTION

avatar
Super Guru

@Gayathri Devi,

Can you put the query in quotes and check .

--query "select * hgj where date(starttime)=2017-08-08"

For incremental, if you provide --last-value it will import only the new or updated data after that date. Read more here

https://sqoop.apache.org/docs/1.4.1-incubating/SqoopUserGuide.html#_Incremental_Imports

Thanks,

Aditya

View solution in original post

2 REPLIES 2

avatar
Super Guru

@Gayathri Devi,

Can you put the query in quotes and check .

--query "select * hgj where date(starttime)=2017-08-08"

For incremental, if you provide --last-value it will import only the new or updated data after that date. Read more here

https://sqoop.apache.org/docs/1.4.1-incubating/SqoopUserGuide.html#_Incremental_Imports

Thanks,

Aditya

avatar
Super Guru

@Gayathri Devi,

Please use the below query format

--query "select * hgj where date(starttime)=2017-08-08 AND \$CONDITIONS"

Thanks,

Aditya