5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-20 02:40:52 +08:00

MAPREDUCE-1469. Sqoop should disable speculative execution in export. Contributed by Aaron Kimball.

From: Thomas White <tomwhite@apache.org>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149857 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Bayer 2011-07-22 20:03:33 +00:00
parent a625fd478c
commit 6a215d0fbc

View File

@ -172,6 +172,9 @@ public void runExport() throws ExportException, IOException {
FileInputFormat.addInputPath(job, inputPath);
job.setNumReduceTasks(0);
// Concurrent writes of the same records would be problematic.
job.setMapSpeculativeExecution(false);
ConnManager mgr = new ConnFactory(conf).getManager(options);
String username = options.getUsername();
if (null == username || username.length() == 0) {