Excluding hosts from distributed queries

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


  1. Navigate to the solr/conf directory.

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

    • Package installations and Installer-Services: /usr/share/dse/resources/solr/conf

    • Tarball installations and Installer-No Services: 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=ShardRouter mbean.

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