GitHub user cestella opened a pull request:

    https://github.com/apache/incubator-metron/pull/170

    METRON-253: Reloading parser configurations from zookeeper doesn't call 
init()

    This results in a NPE if you do not specify an output column (this output 
column gets inferred as part of init())
    
    To validate this:
    * Get a running topology
    * Run `/usr/metron/0.2.0BETA/bin/zk_load_configs.sh -m PUSH -i 
/usr/metron/0.2.0BETA/config/zookeeper -z node1:2181`
    * Wait a full 2 minutes
    * Check the `parser_error` topic via the kafka console consumer and ensure 
you don't see any weird NPEs
    
    The problem here is that init() is not getting run on the sensor parser 
config, so some syntactic sugar in the FieldTransformer isn't getting updated.  
Specifically, if you only specify `input` and not `output`, then it will NPE.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cestella/incubator-metron yaf_npe

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/170.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #170
    
----
commit b0d391c143e3f14a16cadcac6ab91e6863b1be8d
Author: cstella <ceste...@gmail.com>
Date:   2016-06-22T20:27:31Z

    METRON-253: Reloading parser configurations from zookeeper doesn't call 
init()

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to