metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickwallen <...@git.apache.org>
Subject [GitHub] metron pull request #634: METRON-1017: Ambari components should be separate
Date Tue, 11 Jul 2017 13:28:05 GMT
Github user nickwallen commented on a diff in the pull request:

    https://github.com/apache/metron/pull/634#discussion_r126684827
  
    --- Diff: metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/indexing_commands.py
---
    @@ -94,24 +96,24 @@ def init_hdfs_dir(self):
             Logger.info('Done creating HDFS indexing directory')
     
         def start_indexing_topology(self):
    -        Logger.info("Starting Metron indexing topology: {0}".format(self.__indexing))
    +        Logger.info("Starting Metron indexing topology: {0}".format(self.__indexing_topology))
             start_cmd_template = """{0}/bin/start_elasticsearch_topology.sh \
                                         -s {1} \
                                         -z {2}"""
    -        Logger.info('Starting ' + self.__indexing)
    +        Logger.info('Starting ' + self.__indexing_topology)
             if self.__params.security_enabled:
                 metron_security.kinit(self.__params.kinit_path_local,
                                       self.__params.metron_keytab_path,
                                       self.__params.metron_principal_name,
                                       execute_user=self.__params.metron_user)
    -        Execute(start_cmd_template.format(self.__params.metron_home, self.__indexing,
self.__params.zookeeper_quorum),
    +        Execute(start_cmd_template.format(self.__params.metron_home, self.__indexing_topology,
self.__params.zookeeper_quorum),
                     user=self.__params.metron_user)
     
             Logger.info('Finished starting indexing topology')
     
         def stop_indexing_topology(self):
    -        Logger.info('Stopping ' + self.__indexing)
    -        stop_cmd = 'storm kill ' + self.__indexing
    +        Logger.info('Stopping ' + self.__indexing_topology)
    --- End diff --
    
    It looks like previously we were using the same variable to store the name of the Indexing
topology and topic name.  Good catch.


---
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.
---

Mime
View raw message