You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Nick Allen (JIRA)" <ji...@apache.org> on 2018/04/18 15:02:00 UTC

[jira] [Created] (METRON-1529) CONFIG_GET Fails to Retrieve Latest Config When Run in Zeppelin REPL

Nick Allen created METRON-1529:
----------------------------------

             Summary: CONFIG_GET Fails to Retrieve Latest Config When Run in Zeppelin REPL
                 Key: METRON-1529
                 URL: https://issues.apache.org/jira/browse/METRON-1529
             Project: Metron
          Issue Type: Bug
            Reporter: Nick Allen
            Assignee: Nick Allen


The configuration values retrieve by CONFIG_GET are incorrect when run in the Zeppelin REPL.  The cache backing CONFIG_GET retrieves the correct value when the function is initialized.  If the value is changed either in the same session or by an external process, the cache is never updated to the latest value.  Restarting the Zeppelin REPL session and forcing reinitialization will cause the correct, latest value to be retrieved.

Do the following in a Zeppelin Notebook to replicate the bug.

1. Follow the README to install the Stellar Zeppelin Interpreter.

2. In Zeppelin > Interpreters > Stellar, set the zookeeper URL property.
    {code}
    zookeeper.url = localhost:2181
    {code}


3. In Zeppelin > Interpreters > Stellar, set the following additional dependencies.

    | artifact                                  | exclude                          |
    | org.apache.metron:metron-management:0.4.3 |                                  |
    | org.apache.metron:metron-common:0.4.3     |                                  |
    | io.thekraken:grok:0.1.0                   | org.apache.commons:commons-lang3 |
    | org.apache.commons:commons-lang3:3.2      |                                  |
   
   
4. Create a notebook and run the following.

{code}
CONFIG_GET("GLOBAL")
{
  "k6" : "v6"
}
{code}

{code}
CONFIG_PUT("GLOBAL",  '{ "k7":"v7" }')
{code}

{code}
CONFIG_GET("GLOBAL")
{
  "k6" : "v6"
}
{code}

5. The last result shold be "k7"/"v7", but is instead the old value "k6"/"v6".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)