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


The added customizability is nice to have. 

Confirmed that the unit test works, however it does not verify some failure 
cases(at least no 2 and 3 that I suspect below).


flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/HBaseSink.java
<https://reviews.apache.org/r/5073/#comment17168>

    I'm not entirely convinced by the need to set all puts to the same column 
family, when everything else is pretty customizable. Saving on transferring the 
columnFamily data everytime? Perhaps make it overridable with an optional 
header.



flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/HBaseSink.java
<https://reviews.apache.org/r/5073/#comment17170>

    Looks to me like if there is no configuration for this in the context, 
you'll be passing a null here... Which will then result in a NPE?



flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/HBaseSink.java
<https://reviews.apache.org/r/5073/#comment17169>

    I think you should be calling putEventsAndCommit here? Otherwise it looks 
to me like you're losing anything that was take'd between the last PEAC and 
reaching the batchsize


- Juhani


On 2012-05-14 09:02:56, Hari Shreedharan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/5073/
> -----------------------------------------------------------
> 
> (Updated 2012-05-14 09:02:56)
> 
> 
> Review request for Flume.
> 
> 
> Summary
> -------
> 
> Hbase sink.
> 
> 
> This addresses bug FLUME-1183.
>     https://issues.apache.org/jira/browse/FLUME-1183
> 
> 
> Diffs
> -----
> 
>   bin/flume-ng 0108997 
>   flume-ng-dist/pom.xml 5bdcfe7 
>   flume-ng-sinks/flume-ng-hbase-sink/pom.xml PRE-CREATION 
>   
> flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/HBaseSink.java
>  PRE-CREATION 
>   
> flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/HbaseEventSerializer.java
>  PRE-CREATION 
>   
> flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/SimpleHbaseEventSerializer.java
>  PRE-CREATION 
>   
> flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/SimpleRowKeyGenerator.java
>  PRE-CREATION 
>   
> flume-ng-sinks/flume-ng-hbase-sink/src/test/java/org/apache/flume/sink/hbase/TestHBaseSink.java
>  PRE-CREATION 
>   flume-ng-sinks/pom.xml acb3087 
>   pom.xml 8c11a2d 
> 
> Diff: https://reviews.apache.org/r/5073/diff
> 
> 
> Testing
> -------
> 
> Unit tests added
> 
> 
> Thanks,
> 
> Hari
> 
>

Reply via email to