sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject git commit: SQOOP-652: Improve error message generated in DataDrivenDBInputFormat when no splitter is available
Date Wed, 19 Dec 2012 04:32:24 GMT
Updated Branches:
  refs/heads/trunk 52a631f36 -> 0e8a7dc73


SQOOP-652: Improve error message generated in DataDrivenDBInputFormat when no splitter is
available

(Linden Hillenbrand via Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/0e8a7dc7
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/0e8a7dc7
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/0e8a7dc7

Branch: refs/heads/trunk
Commit: 0e8a7dc73e4b8fa64a8c222384fe0027045b8a17
Parents: 52a631f
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Tue Dec 18 20:31:42 2012 -0800
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Tue Dec 18 20:31:42 2012 -0800

----------------------------------------------------------------------
 .../mapreduce/db/DataDrivenDBInputFormat.java      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/0e8a7dc7/src/java/org/apache/sqoop/mapreduce/db/DataDrivenDBInputFormat.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/mapreduce/db/DataDrivenDBInputFormat.java b/src/java/org/apache/sqoop/mapreduce/db/DataDrivenDBInputFormat.java
index 6f4b208..140517a 100644
--- a/src/java/org/apache/sqoop/mapreduce/db/DataDrivenDBInputFormat.java
+++ b/src/java/org/apache/sqoop/mapreduce/db/DataDrivenDBInputFormat.java
@@ -158,7 +158,7 @@ public class DataDrivenDBInputFormat<T extends DBWritable>
 
       DBSplitter splitter = getSplitter(sqlDataType);
       if (null == splitter) {
-        throw new IOException("Unknown SQL data type: " + sqlDataType);
+        throw new IOException("Sqoop does not have the splitter for the given SQL data type.
Please use either different split column (argument --split-by) or lower the number of mappers
to 1. Unknown SQL data type: " + sqlDataType);
       }
 
       return splitter.split(job.getConfiguration(), results,


Mime
View raw message