Esempio n. 1
0
    def start(self, env, upgrade_type=None):
        import params
        env.set_params(params)
        self.configure(env, upgrade_type=upgrade_type)

        if params.stack_supports_logsearch and params.has_logsearch and params.is_solrCloud_enabled:
            setup_ranger_audit_solr()
        ranger_service('ranger_admin')
Esempio n. 2
0
    def start(self, env, upgrade_type=None):
        import params
        env.set_params(params)
        self.configure(env, upgrade_type=upgrade_type)

        if params.stack_supports_infra_client and params.audit_solr_enabled and params.is_solrCloud_enabled:
            solr_cloud_util.setup_solr_client(params.config,
                                              custom_log4j=params.custom_log4j)
            setup_ranger_audit_solr()

        ranger_service('ranger_admin')
Esempio n. 3
0
  def start(self, env, upgrade_type=None):
    import params
    env.set_params(params)

    # setup db only if in case stack version is > 2.6
    self.configure(env, upgrade_type=upgrade_type, setup_db=params.stack_supports_ranger_setup_db_on_start)

    if params.stack_supports_infra_client and params.audit_solr_enabled and params.is_solrCloud_enabled:
      solr_cloud_util.setup_solr_client(params.config, custom_log4j = params.custom_log4j)
      setup_ranger_audit_solr()

    ranger_service('ranger_admin')
Esempio n. 4
0
    def start(self, env, upgrade_type=None):
        import params
        env.set_params(params)
        self.install_ranger()
        Execute(
            "chown -R %s:%s %s" %
            (params.unix_user, params.unix_group, params.install_dir_admin))
        # setup db only if in case HDP version is > 2.6
        self.configure(env,
                       upgrade_type=upgrade_type,
                       setup_db=params.stack_supports_ranger_setup_db_on_start)

        if params.stack_supports_infra_client and params.audit_solr_enabled and params.is_solrCloud_enabled:
            solr_cloud_util.setup_solr_client(params.config,
                                              custom_log4j=params.custom_log4j)
            setup_ranger_audit_solr()

        ranger_service('ranger_admin')