sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1236903 - /incubator/sqoop/trunk/src/java/org/apache/sqoop/tool/BaseSqoopTool.java
Date Fri, 27 Jan 2012 22:01:34 GMT
Author: blee
Date: Fri Jan 27 22:01:34 2012
New Revision: 1236903

URL: http://svn.apache.org/viewvc?rev=1236903&view=rev
Log:
SQOOP-422. Throw an exception when --direct and hbase* options are used together

Modified:
    incubator/sqoop/trunk/src/java/org/apache/sqoop/tool/BaseSqoopTool.java

Modified: incubator/sqoop/trunk/src/java/org/apache/sqoop/tool/BaseSqoopTool.java
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/src/java/org/apache/sqoop/tool/BaseSqoopTool.java?rev=1236903&r1=1236902&r2=1236903&view=diff
==============================================================================
--- incubator/sqoop/trunk/src/java/org/apache/sqoop/tool/BaseSqoopTool.java (original)
+++ incubator/sqoop/trunk/src/java/org/apache/sqoop/tool/BaseSqoopTool.java Fri Jan 27 22:01:34
2012
@@ -949,6 +949,10 @@ public abstract class BaseSqoopTool exte
           "Both --hbase-table and --column-family must be set together."
           + HELP_STR);
     }
+    if (options.getHBaseTable() != null && options.isDirect()) {
+      throw new InvalidOptionsException("Direct import is incompatible with "
+        + "HBase. Please remove parameter --direct");
+    }
   }
 
   /**



Mime
View raw message