Review Board 1.7.22


SQOOP-735 Introduce output format option to Sqoop 2 import

Review Request #8332 - Created Dec. 4, 2012 and submitted

Jarek Cecho
SQOOP-735
Reviewers
Sqoop
sqoop-sqoop2
I've added another enum type to support multiple output formats.
* Unit tests are passing
* Tested on real cluster
core/src/main/java/org/apache/sqoop/framework/configuration/OutputForm.java
Revision 3f70b5f47792de5e4f2bc5c11657f632cba1bae7 New Change
[20] 25 lines
[+20]
26
@FormClass
26
@FormClass
27
public class OutputForm {
27
public class OutputForm {
28

    
   
28

   
29
  @Input public StorageType storageType;
29
  @Input public StorageType storageType;
30

    
   
30

   

    
   
31
  @Input public OutputFormat outputFormat;

    
   
32

   
31
  @Input(size = 25) public String outputDirectory;
33
  @Input(size = 25) public String outputDirectory;
32
}
34
}
core/src/main/java/org/apache/sqoop/framework/configuration/OutputFormat.java
New File
 
core/src/main/resources/framework-resources.properties
Revision 5ddf32debcdcc56d332f5316b4829eaf5903b379 New Change
 
execution/mapreduce/src/main/java/org/apache/sqoop/execution/mapreduce/MapreduceExecutionEngine.java
Revision 4a5b305bbb628e47860e98c3dda8cbb28c1416e9 New Change
 
execution/mapreduce/src/main/java/org/apache/sqoop/job/MapreduceExecutionError.java
Revision aa1f7332079c919d162bcf81ad01f35b7ca00386 New Change
 
  1. core/src/main/java/org/apache/sqoop/framework/configuration/OutputForm.java: Loading...
  2. core/src/main/java/org/apache/sqoop/framework/configuration/OutputFormat.java: Loading...
  3. core/src/main/resources/framework-resources.properties: Loading...
  4. execution/mapreduce/src/main/java/org/apache/sqoop/execution/mapreduce/MapreduceExecutionEngine.java: Loading...
  5. execution/mapreduce/src/main/java/org/apache/sqoop/job/MapreduceExecutionError.java: Loading...