You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metron.apache.org by cestella <gi...@git.apache.org> on 2016/06/22 20:34:47 UTC

[GitHub] incubator-metron pull request #170: METRON-253: Reloading parser configurati...

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 <ce...@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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request #170: METRON-253: Reloading parser configurati...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron issue #170: METRON-253: Reloading parser configurations fro...

Posted by merrimanr <gi...@git.apache.org>.
Github user merrimanr commented on the issue:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron issue #170: METRON-253: Reloading parser configurations fro...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the issue:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---