Github user justinleet commented on a diff in the pull request:

    https://github.com/apache/metron/pull/660#discussion_r128895470
  
    --- Diff: 
metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/enrichment_commands.py
 ---
    @@ -136,26 +136,37 @@ def init_kafka_acls(self):
     
             self.set_kafka_acl_configured()
     
    -    def start_enrichment_topology(self):
    +    def start_enrichment_topology(self, env):
             Logger.info("Starting Metron enrichment topology: 
{0}".format(self.__enrichment_topology))
    -        start_cmd_template = """{0}/bin/start_enrichment_topology.sh \
    -                                    -s {1} \
    -                                    -z {2}"""
    -        Logger.info('Starting ' + self.__enrichment_topology)
    -        Execute(start_cmd_template.format(self.__params.metron_home, 
self.__enrichment_topology, self.__params.zookeeper_quorum),
    -                user=self.__params.metron_user)
    +
    +        if self.is_topology_active(env):
    --- End diff --
    
    Shouldn't we only be starting the topology if it's not active?  I think 
this condition needs to be negated.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to