You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Patrick Wendell (JIRA)" <ji...@apache.org> on 2012/07/23 02:35:35 UTC
[jira] [Created] (FLUME-1389) Flume gives opaque error if
interceptor type not specified
Patrick Wendell created FLUME-1389:
--------------------------------------
Summary: Flume gives opaque error if interceptor type not specified
Key: FLUME-1389
URL: https://issues.apache.org/jira/browse/FLUME-1389
Project: Flume
Issue Type: Bug
Reporter: Patrick Wendell
Assignee: Patrick Wendell
If you declare an interceptor in the configuration but you don't specify the type, flume-agent dies with an opaque NPE. Instead it should die with a message warning that the interceptor doesn't have a type. You can see this using the following config file:
{{monospaced}}
receiver1.sources = gen
receiver1.sinks = null
receiver1.channels = ch1
receiver1.channels.ch1.type = memory
receiver1.sources.gen.type = seq
receiver1.sources.gen.channels = ch1
receiver1.sinks.null.type = null
receiver1.sinks.null.channel = ch1
receiver1.sources.gen.interceptors = int_a
{{monospaced}}
Result is:
12/07/22 17:34:11 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
java.lang.NullPointerException
at org.apache.flume.interceptor.InterceptorBuilderFactory.lookup(InterceptorBuilderFactory.java:31)
at org.apache.flume.interceptor.InterceptorBuilderFactory.newInstance(InterceptorBuilderFactory.java:44)
at org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:104)
--
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-1389) Flume gives opaque error if
interceptor type not specified
Posted by "Patrick Wendell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FLUME-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Wendell updated FLUME-1389:
-----------------------------------
Attachment: FLUME-1389.patch.v1.txt
> Flume gives opaque error if interceptor type not specified
> ----------------------------------------------------------
>
> Key: FLUME-1389
> URL: https://issues.apache.org/jira/browse/FLUME-1389
> Project: Flume
> Issue Type: Bug
> Reporter: Patrick Wendell
> Assignee: Patrick Wendell
> Attachments: FLUME-1389.patch.v1.txt
>
>
> If you declare an interceptor in the configuration but you don't specify the type, flume-agent dies with an opaque NPE. Instead it should die with a message warning that the interceptor doesn't have a type. You can see this using the following config file:
> {{
> receiver1.sources = gen
> receiver1.sinks = null
> receiver1.channels = ch1
> receiver1.channels.ch1.type = memory
> receiver1.sources.gen.type = seq
> receiver1.sources.gen.channels = ch1
> receiver1.sinks.null.type = null
> receiver1.sinks.null.channel = ch1
> receiver1.sources.gen.interceptors = int_a
> }}
> Result is:
> {{
> 12/07/22 17:34:11 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
> java.lang.NullPointerException
> at org.apache.flume.interceptor.InterceptorBuilderFactory.lookup(InterceptorBuilderFactory.java:31)
> at org.apache.flume.interceptor.InterceptorBuilderFactory.newInstance(InterceptorBuilderFactory.java:44)
> at org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:104)
> }}
--
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-1389) Flume gives opaque error if
interceptor type not specified
Posted by "Patrick Wendell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FLUME-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Wendell updated FLUME-1389:
-----------------------------------
Description:
If you declare an interceptor in the configuration but you don't specify the type, flume-agent dies with an opaque NPE. Instead it should die with a message warning that the interceptor doesn't have a type. You can see this using the following config file:
{{
receiver1.sources = gen
receiver1.sinks = null
receiver1.channels = ch1
receiver1.channels.ch1.type = memory
receiver1.sources.gen.type = seq
receiver1.sources.gen.channels = ch1
receiver1.sinks.null.type = null
receiver1.sinks.null.channel = ch1
receiver1.sources.gen.interceptors = int_a
}}
Result is:
{{
12/07/22 17:34:11 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
java.lang.NullPointerException
at org.apache.flume.interceptor.InterceptorBuilderFactory.lookup(InterceptorBuilderFactory.java:31)
at org.apache.flume.interceptor.InterceptorBuilderFactory.newInstance(InterceptorBuilderFactory.java:44)
at org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:104)
}}
was:
If you declare an interceptor in the configuration but you don't specify the type, flume-agent dies with an opaque NPE. Instead it should die with a message warning that the interceptor doesn't have a type. You can see this using the following config file:
{{monospaced}}
receiver1.sources = gen
receiver1.sinks = null
receiver1.channels = ch1
receiver1.channels.ch1.type = memory
receiver1.sources.gen.type = seq
receiver1.sources.gen.channels = ch1
receiver1.sinks.null.type = null
receiver1.sinks.null.channel = ch1
receiver1.sources.gen.interceptors = int_a
{{monospaced}}
Result is:
12/07/22 17:34:11 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
java.lang.NullPointerException
at org.apache.flume.interceptor.InterceptorBuilderFactory.lookup(InterceptorBuilderFactory.java:31)
at org.apache.flume.interceptor.InterceptorBuilderFactory.newInstance(InterceptorBuilderFactory.java:44)
at org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:104)
> Flume gives opaque error if interceptor type not specified
> ----------------------------------------------------------
>
> Key: FLUME-1389
> URL: https://issues.apache.org/jira/browse/FLUME-1389
> Project: Flume
> Issue Type: Bug
> Reporter: Patrick Wendell
> Assignee: Patrick Wendell
>
> If you declare an interceptor in the configuration but you don't specify the type, flume-agent dies with an opaque NPE. Instead it should die with a message warning that the interceptor doesn't have a type. You can see this using the following config file:
> {{
> receiver1.sources = gen
> receiver1.sinks = null
> receiver1.channels = ch1
> receiver1.channels.ch1.type = memory
> receiver1.sources.gen.type = seq
> receiver1.sources.gen.channels = ch1
> receiver1.sinks.null.type = null
> receiver1.sinks.null.channel = ch1
> receiver1.sources.gen.interceptors = int_a
> }}
> Result is:
> {{
> 12/07/22 17:34:11 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
> java.lang.NullPointerException
> at org.apache.flume.interceptor.InterceptorBuilderFactory.lookup(InterceptorBuilderFactory.java:31)
> at org.apache.flume.interceptor.InterceptorBuilderFactory.newInstance(InterceptorBuilderFactory.java:44)
> at org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:104)
> }}
--
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] [Resolved] (FLUME-1389) Flume gives opaque error if
interceptor type not specified
Posted by "Hari Shreedharan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FLUME-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hari Shreedharan resolved FLUME-1389.
-------------------------------------
Resolution: Fixed
Fix Version/s: v1.3.0
Patch committed in commit 1c84ab3e4b1ed63d0578e1f439fba38a0b841d33. Thanks, Patrick!
> Flume gives opaque error if interceptor type not specified
> ----------------------------------------------------------
>
> Key: FLUME-1389
> URL: https://issues.apache.org/jira/browse/FLUME-1389
> Project: Flume
> Issue Type: Bug
> Reporter: Patrick Wendell
> Assignee: Patrick Wendell
> Fix For: v1.3.0
>
> Attachments: FLUME-1389.patch.v1.txt
>
>
> If you declare an interceptor in the configuration but you don't specify the type, flume-agent dies with an opaque NPE. Instead it should die with a message warning that the interceptor doesn't have a type. You can see this using the following config file:
> {{
> receiver1.sources = gen
> receiver1.sinks = null
> receiver1.channels = ch1
> receiver1.channels.ch1.type = memory
> receiver1.sources.gen.type = seq
> receiver1.sources.gen.channels = ch1
> receiver1.sinks.null.type = null
> receiver1.sinks.null.channel = ch1
> receiver1.sources.gen.interceptors = int_a
> }}
> Result is:
> {{
> 12/07/22 17:34:11 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
> java.lang.NullPointerException
> at org.apache.flume.interceptor.InterceptorBuilderFactory.lookup(InterceptorBuilderFactory.java:31)
> at org.apache.flume.interceptor.InterceptorBuilderFactory.newInstance(InterceptorBuilderFactory.java:44)
> at org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:104)
> }}
--
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-1389) Flume gives opaque error if
interceptor type not specified
Posted by "Patrick Wendell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FLUME-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420377#comment-13420377 ]
Patrick Wendell commented on FLUME-1389:
----------------------------------------
It looks like this type of validation is in place for sources/sinks already, we just need to add for interceptors.
> Flume gives opaque error if interceptor type not specified
> ----------------------------------------------------------
>
> Key: FLUME-1389
> URL: https://issues.apache.org/jira/browse/FLUME-1389
> Project: Flume
> Issue Type: Bug
> Reporter: Patrick Wendell
> Assignee: Patrick Wendell
>
> If you declare an interceptor in the configuration but you don't specify the type, flume-agent dies with an opaque NPE. Instead it should die with a message warning that the interceptor doesn't have a type. You can see this using the following config file:
> {{
> receiver1.sources = gen
> receiver1.sinks = null
> receiver1.channels = ch1
> receiver1.channels.ch1.type = memory
> receiver1.sources.gen.type = seq
> receiver1.sources.gen.channels = ch1
> receiver1.sinks.null.type = null
> receiver1.sinks.null.channel = ch1
> receiver1.sources.gen.interceptors = int_a
> }}
> Result is:
> {{
> 12/07/22 17:34:11 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
> java.lang.NullPointerException
> at org.apache.flume.interceptor.InterceptorBuilderFactory.lookup(InterceptorBuilderFactory.java:31)
> at org.apache.flume.interceptor.InterceptorBuilderFactory.newInstance(InterceptorBuilderFactory.java:44)
> at org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:104)
> }}
--
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