Hello, colleagues, good day. I have a strange situation, when SOLR 9.7.0 can 
not see both Master and Slave cores together. It can see either one of them. I 
have the following configuration.
 
-- Both SOLR cores Master and Slave located in one machine.
 
*  In start SOLR script the following parameter: 
export _JAVA_OPTIONS=-Dsolr.disable.allowUrls=true
 
*  In SOLR Home directory file solr.xml has the following entries: 
 <shardHandlerFactory name="shardHandlerFactory"
    class="HttpShardHandlerFactory">
          <!-- needs to be uncommented if using ssl -->
          <!--<str name="urlScheme">https://</str>-->
    <int name="socketTimeout">${socketTimeout:600000}</int>
    <int name="connTimeout">${connTimeout:60000}</int>
    <str name="shardsWhitelist">localhost:8983/solr,127.0.0.1:8983/solr</str>
  </shardHandlerFactory>
 
*  In solr.in.sh I have the following parameters: (slave and master folders are 
outside of main solrhome directory, I have symlinks from there pointing to 
these directories.) 
SOLR_OPTS="$SOLR_OPTS -Dsolr.allowPaths=/solr/slave/data"
SOLR_OPTS="$SOLR_OPTS -Dsolr.allowPaths=/solr/master/data"
 
*  ​​​​​​​In solr/server/etc/security.policy I have 
permission java.io.FilePermission "${solr.allowPaths}", 
"read,write,delete,readlink";
permission java.io.FilePermission "${solr.allowPaths}${/}-", 
"read,write,delete,readlink";
 
*  With the configuration in point number THREE (3) I can see only Master core. 
If I change them places first Master then Slave then I can see only Slave. 
​​​​​​​

If I use this configuration:  SOLR_OPTS="$SOLR_OPTS 
-Dsolr.allowPaths=/path1/to/allow,/path2/to/allow"
then SOLR does not see ANY core, and I get this error:   Where is my mistake, 
what is wrong?
 
 

Reply via email to