Support Questions

Find answers, ask questions, and share your expertise

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