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.

Sqoop Doubt

Highlighted

Sqoop Doubt

New Contributor

I want to run two reducer in Sqoop? What is the query used in Sqoop to achieve this?

1 REPLY 1

Re: Sqoop Doubt

New Contributor

As per sqoop user guide, it imports data in parallel form. You can specify the number of mappers by --num-mappers or -m, by the default value of this arg is four. So in your case, you can use it like

 

sqoop import --connect <<>> --username <<>> --password <<>> --query 'Select * from orders WHERE $CONDITIONS' --num-mappers 2 --target-dir 'marwaadihu_orders/'

Do not forget to mark the answer as correct if it is the one which you want..!

 

Thanks & Regards,

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