Review Board 1.7.22


SQOOP-882 Sqoop2 integration: Auxiliary classes for various database support

Review Request #9487 - Created Feb. 18, 2013 and submitted

Jarek Cecho
SQOOP-882
Reviewers
Sqoop
sqoop-sqoop2
I've created abstract database handler that can be used in tests to interact with remote databases (create tables, insert data, ...). I've also provided concrete implementation based on Derby. I'll add more handlers later if this patch gets accepted.
I've provided first "real" integration test that this utilizing newly created database handler to set up the environment and move some data. Sadly we currently do not have convenient client API that we can use, so the implementation for connection and job creation is quite "hacky". I'll improve that once we will have reasonable client API.
pom.xml
Revision 5e1b43b63d2e6baccfdf3927d3449d0b5ea189fb New Change
[20] 333 lines
[+20]
334
        <groupId>org.apache.derby</groupId>
334
        <groupId>org.apache.derby</groupId>
335
        <artifactId>derby</artifactId>
335
        <artifactId>derby</artifactId>
336
        <version>${derby.version}</version>
336
        <version>${derby.version}</version>
337
      </dependency>
337
      </dependency>
338
      <dependency>
338
      <dependency>

    
   
339
        <groupId>org.apache.derby</groupId>

    
   
340
        <artifactId>derbynet</artifactId>

    
   
341
        <version>${derby.version}</version>

    
   
342
      </dependency>

    
   
343
      <dependency>

    
   
344
        <groupId>org.apache.derby</groupId>

    
   
345
        <artifactId>derbyclient</artifactId>

    
   
346
        <version>${derby.version}</version>

    
   
347
      </dependency>

    
   
348
      <dependency>
339
        <groupId>org.codehaus.cargo</groupId>
349
        <groupId>org.codehaus.cargo</groupId>
340
        <artifactId>cargo-core-container-tomcat</artifactId>
350
        <artifactId>cargo-core-container-tomcat</artifactId>
341
        <version>${cargo.version}</version>
351
        <version>${cargo.version}</version>
342
      </dependency>
352
      </dependency>
343
   </dependencies>
353
   </dependencies>
[+20] [20] 254 lines
test/pom.xml
Revision 66382b6fd7d17d4b345f5960082fb39e2ee100d4 New Change
 
test/src/main/java/org/apache/sqoop/test/db/DatabaseProvider.java
New File
 
test/src/main/java/org/apache/sqoop/test/db/DerbyProvider.java
New File
 
test/src/main/java/org/apache/sqoop/test/minicluster/TomcatSqoopMiniCluster.java
Revision 5fa294a2adc4a2f6855fda6e8853009b53554710 New Change
 
test/src/test/java/org/apache/sqoop/integration/TomcatTestCase.java
Revision eacf3045580cf93879905b706f1114a407283bad New Change
 
test/src/test/java/org/apache/sqoop/integration/connector/ConnectorTestCase.java
New File
 
test/src/test/java/org/apache/sqoop/integration/connector/jdbc/generic/TableImportTest.java
New File
 
test/src/test/resources/log4j.properties
New File
 
  1. pom.xml: Loading...
  2. test/pom.xml: Loading...
  3. test/src/main/java/org/apache/sqoop/test/db/DatabaseProvider.java: Loading...
  4. test/src/main/java/org/apache/sqoop/test/db/DerbyProvider.java: Loading...
  5. test/src/main/java/org/apache/sqoop/test/minicluster/TomcatSqoopMiniCluster.java: Loading...
  6. test/src/test/java/org/apache/sqoop/integration/TomcatTestCase.java: Loading...
  7. test/src/test/java/org/apache/sqoop/integration/connector/ConnectorTestCase.java: Loading...
  8. test/src/test/java/org/apache/sqoop/integration/connector/jdbc/generic/TableImportTest.java: Loading...
  9. test/src/test/resources/log4j.properties: Loading...