You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Jim Jones (JIRA)" <ji...@apache.org> on 2019/04/04 22:05:00 UTC

[jira] [Commented] (METRON-2064) Metron REST API overwriting global.json values

    [ https://issues.apache.org/jira/browse/METRON-2064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810337#comment-16810337 ] 

Jim Jones commented on METRON-2064:
-----------------------------------

Steps to reproduce:

Pull the global.json file
  _$METRON_HOME/bin/zk_load_configs.sh -m PULL -z $ZK -o $METRON_HOME/config/zookeeper -f_

File will have lines with colons in the field names:
   _"source.type.field" : "source:type",_
  _"threat.triage.score.field" : "threat:triage:score",_

Modify the file to this with dots in field names for Solr:
   _"source.type.field" : "source.type",_
  _"threat.triage.score.field" : "threat.triage.score",_

Push file back to zookeeper
   _$METRON_HOME/bin/zk_load_configs.sh -m PUSH -z $ZK -i $METRON_HOME/config/zookeeper_

Restart REST service

Print global.json
   _$METRON_HOME/bin/zk_load_configs.sh -mode DUMP -z $ZK -c GLOBAL_

You'll see that the content will be back to the original with colons:
   _"source.type.field" : "source:type",_
  _"threat.triage.score.field" : "threat:triage:score",_
  

> Metron REST API overwriting global.json values
> ----------------------------------------------
>
>                 Key: METRON-2064
>                 URL: https://issues.apache.org/jira/browse/METRON-2064
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Michael Miklavcic
>            Priority: Major
>
> We added the capability for Ambari to modify global config properties without overwriting non-conflicting externally-provided properties in this PR - [https://github.com/apache/metron/pull/760]. The REST API is currently overwriting the global config when it's restarted, thus losing user changes.



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