You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Mike Percy (JIRA)" <ji...@apache.org> on 2012/08/17 13:19:37 UTC

[jira] [Created] (FLUME-1493) Improve validation error message when source doesn't have any configured channels

Mike Percy created FLUME-1493:
---------------------------------

             Summary: Improve validation error message when source doesn't have any configured channels
                 Key: FLUME-1493
                 URL: https://issues.apache.org/jira/browse/FLUME-1493
             Project: Flume
          Issue Type: Improvement
            Reporter: Mike Percy
            Priority: Minor


The error message isn't very clear today when the source doesn't have a channel. Also, it should log as ERROR, not WARN

This is the error I am getting due to lack of any channels on my source:

2012-08-17 04:14:53,035 (conf-file-poller-0) [WARN - org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.validateSources(FlumeConfiguration.java:571)] Removed src-0 due to Failed to configure component!


--
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-1493) Improve validation error message when source doesn't have any configured channels

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

Aaron Baff commented on FLUME-1493:
-----------------------------------

I have the same thing for a Sink I was trying to configure. In FlumeConfiguration.java:668 it logs as a warning "Configuration empty for: " + sinkName + ".Removed."  It'd be great if this could also log the ConfigurationException log message and/or stacktrace it'd be much, much easier to figure out what the issues are with the Sink configuration problems. Likely the Source, Channel, and Agent sections could use a similar type of love there.
                
> Improve validation error message when source doesn't have any configured channels
> ---------------------------------------------------------------------------------
>
>                 Key: FLUME-1493
>                 URL: https://issues.apache.org/jira/browse/FLUME-1493
>             Project: Flume
>          Issue Type: Improvement
>            Reporter: Mike Percy
>            Priority: Minor
>
> The error message isn't very clear today when the source doesn't have a channel. Also, it should log as ERROR, not WARN
> This is the error I am getting due to lack of any channels on my source:
> 2012-08-17 04:14:53,035 (conf-file-poller-0) [WARN - org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.validateSources(FlumeConfiguration.java:571)] Removed src-0 due to Failed to configure component!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (FLUME-1493) Improve validation error message when source doesn't have any configured channels

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

Christopher Nagy commented on FLUME-1493:
-----------------------------------------

I had the same problem for a sink. In general, the errors in the config are not being logged. I've modified a couple of files to fix this. Here is an example of what it would log:

2012-08-31 13:49:27,449 WARN properties.PropertiesFileConfigurationProvider: Error in configuration file '/etc/flume-ng/conf/flume.conf' : [avro-sink - channel [ERROR] : PROPERTY_VALUE_NULL]


                
> Improve validation error message when source doesn't have any configured channels
> ---------------------------------------------------------------------------------
>
>                 Key: FLUME-1493
>                 URL: https://issues.apache.org/jira/browse/FLUME-1493
>             Project: Flume
>          Issue Type: Improvement
>            Reporter: Mike Percy
>            Priority: Minor
>
> The error message isn't very clear today when the source doesn't have a channel. Also, it should log as ERROR, not WARN
> This is the error I am getting due to lack of any channels on my source:
> 2012-08-17 04:14:53,035 (conf-file-poller-0) [WARN - org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.validateSources(FlumeConfiguration.java:571)] Removed src-0 due to Failed to configure component!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (FLUME-1493) Improve validation error message when source doesn't have any configured channels

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

Christopher Nagy edited comment on FLUME-1493 at 9/7/12 8:39 AM:
-----------------------------------------------------------------

FLUME-1493-1.patch : Adds toString method to FlumeConfigurationError and logs the errors in the configuration file after the PropertiesFileConfigurationProvider parses it
                
      was (Author: chris.nagy):
    Adds toString method to FlumeConfigurationError and logs the errors in the configuration file after the PropertiesFileConfigurationProvider parses it
                  
> Improve validation error message when source doesn't have any configured channels
> ---------------------------------------------------------------------------------
>
>                 Key: FLUME-1493
>                 URL: https://issues.apache.org/jira/browse/FLUME-1493
>             Project: Flume
>          Issue Type: Improvement
>            Reporter: Mike Percy
>            Priority: Minor
>         Attachments: FLUME-1493-1.patch
>
>
> The error message isn't very clear today when the source doesn't have a channel. Also, it should log as ERROR, not WARN
> This is the error I am getting due to lack of any channels on my source:
> 2012-08-17 04:14:53,035 (conf-file-poller-0) [WARN - org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.validateSources(FlumeConfiguration.java:571)] Removed src-0 due to Failed to configure component!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (FLUME-1493) Improve validation error message when source doesn't have any configured channels

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

Mike Percy commented on FLUME-1493:
-----------------------------------

@Christopher: can you submit a patch?
                
> Improve validation error message when source doesn't have any configured channels
> ---------------------------------------------------------------------------------
>
>                 Key: FLUME-1493
>                 URL: https://issues.apache.org/jira/browse/FLUME-1493
>             Project: Flume
>          Issue Type: Improvement
>            Reporter: Mike Percy
>            Priority: Minor
>
> The error message isn't very clear today when the source doesn't have a channel. Also, it should log as ERROR, not WARN
> This is the error I am getting due to lack of any channels on my source:
> 2012-08-17 04:14:53,035 (conf-file-poller-0) [WARN - org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.validateSources(FlumeConfiguration.java:571)] Removed src-0 due to Failed to configure component!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (FLUME-1493) Improve validation error message when source doesn't have any configured channels

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

Christopher Nagy updated FLUME-1493:
------------------------------------

    Attachment: FLUME-1493-1.patch

Adds toString method to FlumeConfigurationError and logs the errors in the configuration file after the PropertiesFileConfigurationProvider parses it
                
> Improve validation error message when source doesn't have any configured channels
> ---------------------------------------------------------------------------------
>
>                 Key: FLUME-1493
>                 URL: https://issues.apache.org/jira/browse/FLUME-1493
>             Project: Flume
>          Issue Type: Improvement
>            Reporter: Mike Percy
>            Priority: Minor
>         Attachments: FLUME-1493-1.patch
>
>
> The error message isn't very clear today when the source doesn't have a channel. Also, it should log as ERROR, not WARN
> This is the error I am getting due to lack of any channels on my source:
> 2012-08-17 04:14:53,035 (conf-file-poller-0) [WARN - org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.validateSources(FlumeConfiguration.java:571)] Removed src-0 due to Failed to configure component!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira