Excluding hosts from distributed queries
To exclude hosts from distributed queries, perform these steps on each node to which you want to send queries:
-
Navigate to the
solr/confdirectory.+ 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
-
-
Open the
exclude.hostsfile, and add the list of nodes to be excluded. Separate each name with a newline character. -
Update the list of routing endpoints on each node by calling the JMX operation
refreshEndpoints()on thecom.datastax.bdp:type=search,name=Routermbean.For example:
nodetool sjk mx -mc -b "com.datastax.bdp:type=search,name=Router" -op refreshEndpoints