You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Inder SIngh (Created) (JIRA)" <ji...@apache.org> on 2012/04/03 13:54:33 UTC

[jira] [Created] (FLUME-1096) Issues in using AvroClient with HDFSEvent for regex based destination paths

Issues in using AvroClient with HDFSEvent for regex based destination paths
---------------------------------------------------------------------------

                 Key: FLUME-1096
                 URL: https://issues.apache.org/jira/browse/FLUME-1096
             Project: Flume
          Issue Type: Bug
            Reporter: Inder SIngh
            Priority: Minor




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-1096) Issues in using AvroClient with HDFSEventSink for regex based destination paths

Posted by "Inder SIngh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Inder SIngh updated FLUME-1096:
-------------------------------

    Attachment: FLUME-1096-3.patch

Patch to support passing headers in AvroCLIClient with changes in bin/flume-ng
                
> Issues in using AvroClient with HDFSEventSink for regex based destination paths
> -------------------------------------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>         Attachments: FLUME-1096-2.patch, FLUME-1096-3.patch
>
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FLUME-1096) Issues in using AvroClient with HDFSEventSink for regex based destination paths

Posted by "Inder SIngh (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249764#comment-13249764 ] 

Inder SIngh commented on FLUME-1096:
------------------------------------

Latest Patch available for review - https://issues.apache.org/jira/secure/attachment/12521935/FLUME-1096-3.patch.
Review Board Link - https://reviews.apache.org/r/4622/
Testing Done - Tested AvroCLIClient by passing timestamp header with the following command.

"flume-ng avro-client --conf ../conf/ -H 0.0.0.0 -p 41415 -F ~/.bash_profile -R timestamp=389908323"

                
> Issues in using AvroClient with HDFSEventSink for regex based destination paths
> -------------------------------------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>         Attachments: FLUME-1096-2.patch, FLUME-1096-3.patch
>
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FLUME-1096) Add support to pass headers through AvroCLIClient

Posted by "Inder SIngh (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258100#comment-13258100 ] 

Inder SIngh commented on FLUME-1096:
------------------------------------

Updated the client to read headers from a property file.
Sample header.properties
------------------------------------
streamName = sample-stream
timestamp=2189128912

Client command line looks like ->

 ./flume-ng avro-client --conf ../conf/ -H localhost -p 41414 -F ~/.bash_profile -R headers.properties

                
> Add support to pass headers through AvroCLIClient
> -------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.2.0
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>              Labels: avroclient
>             Fix For: v1.2.0
>
>         Attachments: FLUME-1096-2.patch, FLUME-1096-3.patch, FLUME-1096-4.patch
>
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-1096) Add support to pass headers through AvroCLIClient

Posted by "Inder SIngh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Inder SIngh updated FLUME-1096:
-------------------------------

    Attachment: FLUME-1096-7.patch

Patch incorporating all review comments from - https://reviews.apache.org/r/4622/
                
> Add support to pass headers through AvroCLIClient
> -------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.2.0
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>              Labels: avroclient
>             Fix For: v1.2.0
>
>         Attachments: FLUME-1096-2.patch, FLUME-1096-3.patch, FLUME-1096-4.patch, FLUME-1096-7.patch
>
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-1096) Add support to pass headers through AvroCLIClient

Posted by "Inder SIngh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Inder SIngh updated FLUME-1096:
-------------------------------

    Attachment: FLUME-1096-4.patch

Reading headers to be sent through avroclient through a property file
                
> Add support to pass headers through AvroCLIClient
> -------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.2.0
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>              Labels: avroclient
>             Fix For: v1.2.0
>
>         Attachments: FLUME-1096-2.patch, FLUME-1096-3.patch, FLUME-1096-4.patch
>
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-1096) Issues in using AvroClient with HDFSEventSink for regex based destination paths

Posted by "Inder SIngh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Inder SIngh updated FLUME-1096:
-------------------------------

        Fix Version/s: v1.2.0
               Labels: avroclient  (was: )
    Affects Version/s: v1.2.0
         Release Note: Adding support to pass headers in AvroCLIClient
               Status: Patch Available  (was: Open)
    
> Issues in using AvroClient with HDFSEventSink for regex based destination paths
> -------------------------------------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.2.0
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>              Labels: avroclient
>             Fix For: v1.2.0
>
>         Attachments: FLUME-1096-2.patch, FLUME-1096-3.patch
>
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FLUME-1096) Issues in using AvroClient with HDFSEventSink for regex based destination paths

Posted by "Inder SIngh (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245283#comment-13245283 ] 

Inder SIngh commented on FLUME-1096:
------------------------------------

Please review the patch at - https://reviews.apache.org/r/4622/
                
> Issues in using AvroClient with HDFSEventSink for regex based destination paths
> -------------------------------------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-1096) Issues in using AvroClient with HDFSEventSink for regex based destination paths

Posted by "Inder SIngh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Inder SIngh updated FLUME-1096:
-------------------------------

    Summary: Issues in using AvroClient with HDFSEventSink for regex based destination paths  (was: Issues in using AvroClient with HDFSEvent for regex based destination paths)
    
> Issues in using AvroClient with HDFSEventSink for regex based destination paths
> -------------------------------------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FLUME-1096) Add support to pass headers through AvroCLIClient

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260520#comment-13260520 ] 

Hudson commented on FLUME-1096:
-------------------------------

Integrated in flume-trunk #181 (See [https://builds.apache.org/job/flume-trunk/181/])
    FLUME-1096. Support for headers through AvroCLIClient

(Inder Singh via Arvind Prabhakar) (Revision 1329673)

     Result = SUCCESS
arvind : http://svn.apache.org/viewvc/?view=rev&rev=1329673
Files : 
* /incubator/flume/trunk/bin/flume-ng
* /incubator/flume/trunk/flume-ng-core/src/main/java/org/apache/flume/client/avro/AvroCLIClient.java

                
> Add support to pass headers through AvroCLIClient
> -------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.2.0
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>              Labels: avroclient
>             Fix For: v1.2.0
>
>         Attachments: FLUME-1096-2.patch, FLUME-1096-3.patch, FLUME-1096-4.patch, FLUME-1096-7.patch
>
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-1096) Add support to pass headers through AvroCLIClient

Posted by "Arvind Prabhakar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arvind Prabhakar updated FLUME-1096:
------------------------------------

      Resolution: Fixed
    Release Note:   (was: Adding support to pass headers in AvroCLIClient)
          Status: Resolved  (was: Patch Available)

Patch committed. Thanks Inder!
                
> Add support to pass headers through AvroCLIClient
> -------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.2.0
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>              Labels: avroclient
>             Fix For: v1.2.0
>
>         Attachments: FLUME-1096-2.patch, FLUME-1096-3.patch, FLUME-1096-4.patch, FLUME-1096-7.patch
>
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-1096) Issues in using AvroClient with HDFSEventSink for regex based destination paths

Posted by "Inder SIngh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Inder SIngh updated FLUME-1096:
-------------------------------

    Attachment: FLUME-1096-2.patch

Patch to support passing headers in AvroCLIClient
                
> Issues in using AvroClient with HDFSEventSink for regex based destination paths
> -------------------------------------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>         Attachments: FLUME-1096-2.patch
>
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-1096) Add support to pass headers through AvroCLIClient

Posted by "Inder SIngh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Inder SIngh updated FLUME-1096:
-------------------------------

    Summary: Add support to pass headers through AvroCLIClient  (was: Issues in using AvroClient with HDFSEventSink for regex based destination paths)
    
> Add support to pass headers through AvroCLIClient
> -------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.2.0
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>              Labels: avroclient
>             Fix For: v1.2.0
>
>         Attachments: FLUME-1096-2.patch, FLUME-1096-3.patch
>
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (FLUME-1096) Issues in using AvroClient with HDFSEvent for regex based destination paths

Posted by "Inder SIngh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FLUME-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Inder SIngh updated FLUME-1096:
-------------------------------

    Description: 
Configured HDFSEvent Sink to generate file path's using regex based date format.

Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
    
Date date = new Date(Long.valueOf(headers.get("timestamp")));

java.lang.NumberFormatException: null
        at java.lang.Long.parseLong(Long.java:375)
        at java.lang.Long.valueOf(Long.java:525)
        at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
        at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
        at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
        at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
        at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
        at java.lang.Thread.run(Thread.java:680)

Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile

Issue - AvroCLiClient isn't adding timestamp in headers


       Assignee: Inder SIngh
    
> Issues in using AvroClient with HDFSEvent for regex based destination paths
> ---------------------------------------------------------------------------
>
>                 Key: FLUME-1096
>                 URL: https://issues.apache.org/jira/browse/FLUME-1096
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Inder SIngh
>            Assignee: Inder SIngh
>            Priority: Minor
>
> Configured HDFSEvent Sink to generate file path's using regex based date format.
> Config for hdfs-sink -> collector1.sinks.hdfs-sink1.hdfs.filePrefix = flume/%D
> Hit NumberFormatException in BucketPath.replaceShorthand() as it reads timestamp from headers
>     
> Date date = new Date(Long.valueOf(headers.get("timestamp")));
> java.lang.NumberFormatException: null
>         at java.lang.Long.parseLong(Long.java:375)
>         at java.lang.Long.valueOf(Long.java:525)
>         at org.apache.flume.formatter.output.BucketPath.replaceShorthand(BucketPath.java:185)
>         at org.apache.flume.formatter.output.BucketPath.escapeString(BucketPath.java:219)
>         at org.apache.flume.sink.hdfs.HDFSEventSink.process(HDFSEventSink.java:341)
>         at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:65)
>         at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:148)
>         at java.lang.Thread.run(Thread.java:680)
> Sending the events using -  ./flume-ng avro-client --conf ../conf/ -H localhost -p 41415 -F ~/.bash_profile
> Issue - AvroCLiClient isn't adding timestamp in headers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira