Excluding hosts from distributed queries

To exclude hosts from distributed queries, perform these steps on each node to which you want to send queries:

Procedure

  1. Navigate to the solr/conf directory.

    The default Solr conf directory location depends on the type of installation:

    • Package installations: /usr/share/dse/solr/conf

    • Tarball installations: <installation_location>/resources/solr/conf

  2. Open the exclude.hosts file, and add the list of nodes to be excluded. Separate each name with a newline character.

  3. Update the list of routing endpoints on each node by calling the JMX operation refreshEndpoints() on the com.datastax.bdp:type=search,name=Router mbean.

    For example:

    nodetool sjk mx -mc -b "com.datastax.bdp:type=search,name=Router" -op refreshEndpoints

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com