From b63a6286be32b54335c292ac97959f8036bf738b Mon Sep 17 00:00:00 2001
From: Aaron Kimball <aaron@cloudera.com>
Date: Thu, 23 Jul 2009 16:10:21 -0700
Subject: [PATCH] HADOOP-5967: Sqoop should only use a single map task

---
 .../org/apache/hadoop/sqoop/mapred/ImportJob.java  |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/contrib/sqoop/src/java/org/apache/hadoop/sqoop/mapred/ImportJob.java b/src/contrib/sqoop/src/java/org/apache/hadoop/sqoop/mapred/ImportJob.java
index 46bebb1..dfd44bb 100644
--- a/src/contrib/sqoop/src/java/org/apache/hadoop/sqoop/mapred/ImportJob.java
+++ b/src/contrib/sqoop/src/java/org/apache/hadoop/sqoop/mapred/ImportJob.java
@@ -110,6 +110,7 @@ public class ImportJob {
       }
 
       job.setNumReduceTasks(0);
+      job.setNumMapTasks(1);
       job.setInputFormat(DBInputFormat.class);
 
       FileOutputFormat.setOutputPath(job, outputPath);
-- 
1.6.0.4

