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


Looks good! I have one minor suggestion, posted it inline.


trunk/flume-ng-core/src/main/java/org/apache/flume/client/avro/AvroCLIClient.java
<https://reviews.apache.org/r/4622/#comment15648>

    This a minor comment. Doing this would make "," a delimiter in the headers 
and would not allow a user to use a "," in the event header text. Maybe allow 
an alternate way to add headers, from a file, maybe a properties file or 
something,when the user cannot use "," as a delim. 
    
    Also maybe convert the command line input into a properties by replacing 
the ","  with "\n" and wrapping it in a input stream to handle the case of 
rogue spaces? 
    
    You could do something like:
    
    private void parseHeaders(Properties p) //takes the properties and puts 
them into the headers
    
    and
    
    private void parseCommandLineHeaders(String hdrs){
      hdrs.replaceAll(",", "\n");
    //Wrap this hdrs in an InputStream,and load a properties object using that
      parseHeaders(Properties p);
    }
    
    


- Hari


On 2012-04-09 09:52:21, Inder Singh wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/4622/
> -----------------------------------------------------------
> 
> (Updated 2012-04-09 09:52:21)
> 
> 
> Review request for Flume, Arvind Prabhakar and Mike Percy.
> 
> 
> Summary
> -------
> 
> Patch to address FLUME 1096. Please review and share your thoughts.
> 
> 
> This addresses bug https://issues.apache.org/jira/browse/FLUME-1096.
>     
> https://issues.apache.org/jira/browse/https://issues.apache.org/jira/browse/FLUME-1096
> 
> 
> Diffs
> -----
> 
>   
> trunk/flume-ng-core/src/main/java/org/apache/flume/client/avro/AvroCLIClient.java
>  1311132 
>   trunk/bin/flume-ng 1311132 
> 
> Diff: https://reviews.apache.org/r/4622/diff
> 
> 
> Testing
> -------
> 
> 1. Configured flume agent to publish data in /data/flume/%D
> 2. ran the avroClient to stream some data.
> 3. Things looked ok. Data was available in HDFS.
> 
> 
> Thanks,
> 
> Inder
> 
>

Reply via email to