Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

Default Number of mapper and reducer in SQOOP job

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 06 Jun, 2019
  • 0 Comments
  • 1 Min Read

Default Number of mapper and reducer in SQOOP job

Updated: Dec 12, 2018

#hadoop #sqoop #defaultmapper #defaultreducer #hadoopinterviewquestion

In this post we are going to focus the default number of mappers and reducers in the sqoop. scope is the part of Hadoop ecosystem which is mainly useful to move the data from the RDBMS database to hdfs file system or to directly hive tables and vice versa.

when we don’t mention the number of mappers while transferring the data from RDBMS to HDFS file system sqoop will use default number of mapper 4.

Sqoop imports data in parallel from most database sources. You can specify the number of map tasks (parallel processes) to use to perform the import by using the –num-mappers.

4 mapper will generate 4 part file . the number of mappers is equals to the number of part files on the hdfs file system. the number of mappers is to transfer the data from source to destination for the parallel processing. obviously there is a limit on the number of mappers as we need to consider capacity of the hadoop cluster.

Reducers are required for aggregation. While fetching data from rdbms, sqoop simply uses select queries which is done by the mappers.

There are no reducers in sqoop. Sqoop only uses mappers as it does parallel import and export.

Following video will give you the practical presentation of default number of reducer and number of mappers in sqoop.