Example #1
0
    def restart(self, env):
        from params import params
        env.set_params(params)

        self.configure(env)
        commands = IndexingCommands(params)
        commands.restart_indexing_topology(env)
Example #2
0
    def restart(self, env):
        from params import params
        env.set_params(params)
        self.configure(env)
        commands = IndexingCommands(params)

        if params.ra_indexing_writer == 'Solr':
            # Install Solr schemas
            if not commands.is_solr_schema_installed():
                if commands.solr_schema_install(env):
                    commands.set_solr_schema_installed()

        elif params.ra_indexing_writer == 'Elasticsearch':
            # Install elasticsearch templates
            if not commands.is_elasticsearch_template_installed():
                if self.elasticsearch_template_install(env):
                    commands.set_elasticsearch_template_installed()

        else :
            msg = "WARNING:  index schemas/templates could not be installed.  " \
                  "Is Indexing server configured properly ?  Will reattempt install on next start.  index server configured={0}"
            Logger.warning(msg.format(params.ra_indexing_writer))

        commands.restart_indexing_topology(env)
 def restart(self, env):
     from params import params
     env.set_params(params)
     self.configure(env)
     commands = IndexingCommands(params)
     commands.restart_indexing_topology(env)