Sqoop split-by problem

0 votes

I am giving the number of mapper to 10 but still, the sqoop is transferring the data into 5 files only.
sqoop import --connect jdbc:mysql://localhost/retail_db \--username root \--P --table order_items -m 10 \--split-by "order_item_quantity";

When I run the query select distinct(order_item_quantity) from order_item it is giving me the result as 1,2,3,4,5.

Are we telling that the number of the mapper, in this case, is irrelevant?

Dec 19, 2018 in Big Data Hadoop by digger
• 27,620 points
45 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hello. The -m or --num-mappers is just a hint to the engine to maintain that degree of parallelism. But it is not mandatory to launch those number of tasks always. The mappers count may vary based on your input data. Sqoop client serializes the data, generates the deserializer and sets the input format and submits the job to be run.

answered Dec 19, 2018 by Omkar
• 65,850 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Why we use --split by command in Sqoop?

The command --split-by is used to specify the ...READ MORE

answered Apr 11 in Big Data Hadoop by Gitika
• 8,140 points
45 views
0 votes
1 answer

Problem connecting Sqoop to MySql

Perhaps, you have slightly misunderstood the method ...READ MORE

answered May 15 in Big Data Hadoop by Ali
17 views
0 votes
1 answer

What do we exactly mean by “Hadoop” – the definition of Hadoop?

The official definition of Apache Hadoop given ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by Shubham
119 views
0 votes
1 answer

Testing methods used by a Hadoop developer ?

As such, there is no exact way ...READ MORE

answered Mar 26, 2018 in Big Data Hadoop by Ashish
• 2,630 points
31 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 9,030 points
1,663 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 9,030 points
130 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
8,065 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
566 views
0 votes
1 answer

Sqoop import where clause problem

The syntax you are using is wrong. ...READ MORE

answered Jan 30 in Big Data Hadoop by Omkar
• 65,850 points
45 views
0 votes
1 answer

Sqoop incremental append by date

Consider a table with 3 records which ...READ MORE

answered Feb 19 in Big Data Hadoop by Omkar
• 65,850 points
65 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.