Review Board 1.7.22


Allow Sqoop to import row key column into HBase

Review Request #9354 - Created Feb. 7, 2013 and submitted

David Robson
trunk
SQOOP-870
Reviewers
Sqoop
sqoop-trunk
Added new option to import row key column. Set to false by default (same behaviour as before).
Documented new option.
Added tests for both options.
src/docs/user/import.txt
Revision 9bc4fc9 New Change
[20] 604 lines
[+20]
605
                                       value of +true+ (default) will use     \
605
                                       value of +true+ (default) will use     \
606
                                       toPlainString to store them without an \
606
                                       toPlainString to store them without an \
607
                                       exponent component (0.0000001); while  \
607
                                       exponent component (0.0000001); while  \
608
                                       a value of +false+ will use toString   \
608
                                       a value of +false+ will use toString   \
609
                                       which may include an exponent (1E-7)
609
                                       which may include an exponent (1E-7)

    
   
610
+sqoop.hbase.add.row.key+              When set to +false+ (default), Sqoop   \

    
   
611
                                       will not add the column used as a row  \

    
   
612
                                       key into the row data in HBase. When   \

    
   
613
                                       set to +true+, the column used as a    \

    
   
614
                                       row key will be added to the row data  \

    
   
615
                                       in HBase.
610
-------------------------------------------------------------------------------
616
-------------------------------------------------------------------------------
611

    
   
617

   
612

    
   
618

   
613
Example Invocations
619
Example Invocations
614
~~~~~~~~~~~~~~~~~~~
620
~~~~~~~~~~~~~~~~~~~
[+20] [20] 110 lines
src/java/org/apache/sqoop/hbase/HBasePutProcessor.java
Revision cca641f New Change
 
src/java/org/apache/sqoop/hbase/ToStringPutTransformer.java
Revision 131fd43 New Change
 
src/test/com/cloudera/sqoop/hbase/HBaseImportTest.java
Revision bf24608 New Change
 
  1. src/docs/user/import.txt: Loading...
  2. src/java/org/apache/sqoop/hbase/HBasePutProcessor.java: Loading...
  3. src/java/org/apache/sqoop/hbase/ToStringPutTransformer.java: Loading...
  4. src/test/com/cloudera/sqoop/hbase/HBaseImportTest.java: Loading...