sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dian Fu" <dian0511...@gmail.com>
Subject Re: Review Request 37870: SQOOP-2525 Sqoop2: Add support for incremental From in HDFS Connector
Date Tue, 08 Sep 2015 06:35:17 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37870/#review97970
-----------------------------------------------------------



connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsFromDestroyer.java
(line 44)
<https://reviews.apache.org/r/37870/#comment154095>

    Minor typo issue: Connector should be connector



connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsFromInitializer.java
(line 55)
<https://reviews.apache.org/r/37870/#comment154096>

    Seems that it should be "boolean incremental = jobConfig.incremental != null &&
jobConfig.incremental.incrementalType == IncrementalType.NEW_FILES;".



connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsFromInitializer.java
(line 56)
<https://reviews.apache.org/r/37870/#comment154097>

    This log should be wrapped under if (incremental) ...



connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsPartitioner.java
(line 126)
<https://reviews.apache.org/r/37870/#comment154098>

    Seems that it should be "boolean incremental = jobConfig.incremental != null &&
jobConfig.incremental.incrementalType == IncrementalType.NEW_FILES;".



connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsPartitioner.java
(line 127)
<https://reviews.apache.org/r/37870/#comment154099>

    Seems that it should be "fromJobConfig.incremental != null ? fromJobConfig.incremental.lastImportedDate
: 0;".


- Dian Fu


On Aug. 28, 2015, 3:40 a.m., Jarek Cecho wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37870/
> -----------------------------------------------------------
> 
> (Updated Aug. 28, 2015, 3:40 a.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Bugs: SQOOP-2525
>     https://issues.apache.org/jira/browse/SQOOP-2525
> 
> 
> Repository: sqoop-sqoop2
> 
> 
> Description
> -------
> 
> Implemented incremental import as suggested in the JIRA.
> 
> 
> Diffs
> -----
> 
>   common/src/main/java/org/apache/sqoop/error/code/HdfsConnectorError.java 6cd66cc 
>   connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsConstants.java
9d20a79 
>   connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsFromDestroyer.java
6d79db7 
>   connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsFromInitializer.java
f5d9e1f 
>   connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/HdfsPartitioner.java
119955d 
>   connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/configuration/FromJobConfiguration.java
618366e 
>   connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/configuration/IncrementalRead.java
PRE-CREATION 
>   connector/connector-hdfs/src/main/java/org/apache/sqoop/connector/hdfs/configuration/IncrementalType.java
PRE-CREATION 
>   connector/connector-hdfs/src/main/resources/hdfs-connector-config.properties db23a95

>   connector/connector-hdfs/src/test/java/org/apache/sqoop/connector/hdfs/TestFromDestroyer.java
PRE-CREATION 
>   connector/connector-hdfs/src/test/java/org/apache/sqoop/connector/hdfs/TestFromInitializer.java
5215901 
>   test/src/test/java/org/apache/sqoop/integration/connector/hdfs/HdfsIncrementalReadTest.java
PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/37870/diff/
> 
> 
> Testing
> -------
> 
> Added new integration test validating the end-to-end use case.
> 
> 
> Thanks,
> 
> Jarek Cecho
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message