def start(self, env, upgrade_type=None): from params import params env.set_params(params) self.configure(env) commands = EnrichmentCommands(params) if params.security_enabled: metron_security.kinit(params.kinit_path_local, params.metron_keytab_path, params.metron_principal_name, execute_user=params.metron_user) metron_service.load_global_config(params) if not commands.is_kafka_configured(): commands.init_kafka_topics() if params.security_enabled and not commands.is_kafka_acl_configured(): commands.init_kafka_acls() if not commands.is_hbase_configured(): commands.create_hbase_tables() if params.security_enabled and not commands.is_hbase_acl_configured(): commands.set_hbase_acls() if not commands.is_geo_configured(): commands.init_geo() commands.start_enrichment_topology()
def start(self, env, upgrade_type=None): from params import params env.set_params(params) commands = EnrichmentCommands(params) metron_service.load_global_config(params) if not commands.is_kafka_configured(): commands.init_kafka_topics() if not commands.is_hbase_configured(): commands.create_hbase_tables() if not commands.is_geo_configured(): commands.init_geo() commands.start_enrichment_topology()
def start(self, env, upgrade_type=None): from params import params env.set_params(params) self.configure(env) commands = EnrichmentCommands(params) if params.security_enabled: metron_security.kinit(params.kinit_path_local, params.metron_keytab_path, params.metron_principal_name, execute_user=params.metron_user) if not commands.is_kafka_configured(): commands.init_kafka_topics() if params.security_enabled and not commands.is_kafka_acl_configured(): commands.init_kafka_acls() if not commands.is_hbase_configured(): commands.create_hbase_tables() if params.security_enabled and not commands.is_hbase_acl_configured(): commands.set_hbase_acls() if not commands.is_geo_configured(): commands.init_geo() commands.start_enrichment_topology(env)