You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jesse Sipprell (JIRA)" <ji...@apache.org> on 2014/02/07 06:28:19 UTC

[jira] [Commented] (SOLR-5704) solr.xml coreNodeDirectory is ignored when creating new cores via REST(ish) apis

    [ https://issues.apache.org/jira/browse/SOLR-5704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13894206#comment-13894206 ] 

Jesse Sipprell commented on SOLR-5704:
--------------------------------------

The following is the common solr.xml we use on all 4.6.1 nodes with path and hostname redactions for security reasons:

{noformat}
<solr>
  <str name="adminHandler">${adminHandler:org.apache.solr.handler.admin.CoreAdminHandler}</str>
  <int name="coreLoadThreads">${coreLoadThreads:3}</int>
  <str name="coreRootDirectory">${coreRootDirectory:/data/solr/cores/}</str> <!-- usually solrHome  -->
  <str name="managementPath">${managementPath:admin}</str>
  <str name="sharedLib">${sharedLib:lib}</str>
  <str name="shareSchema">${shareSchema:false}</str>
  <!-- transientCacheSize is ignored for everything but transient cores. -->
  <int name="transientCacheSize">${transientCacheSize:2147483647}</int>
  <solrcloud>
    <int name="distribUpdateConnTimeout">${distribUpdTimeout:30000}</int>
    <int name="distribUpdateSoTimeout">${distribUpdateTimeout:15000}</int>
    <int name="leaderVoteWait">${leaderVoteWait:30000}</int>
    <str name="host">${host:a-fully-qualified-hostname.mcclatchyinteractive.com}</str>
    <str name="hostContext">${hostContext:solr}</str>
    <int name="hostPort">${jetty.port:8983}</int>
    <int name="zkClientTimeout">${zkClientTimeout:15000}</int>
    <str name="zkHost">${zkHost:a,zk,cluster,host,port,namespace,list}</str>
    <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
  </solrcloud>
</solr>
{noformat}


> solr.xml coreNodeDirectory is ignored when creating new cores via REST(ish) apis
> --------------------------------------------------------------------------------
>
>                 Key: SOLR-5704
>                 URL: https://issues.apache.org/jira/browse/SOLR-5704
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.6.1
>         Environment: x86_64 Linux
> x86_64 Sun Java 7_u21
>            Reporter: Jesse Sipprell
>            Priority: Minor
>              Labels: solr.xml
>
> "New style" core.properties auto-configuration works correctly at startup when ${coreRootDirectory} is specified in ${solr.home}/solr.xml, however it does not work if a core is later created dynamically via either (indirectly) the collection API or (directly) the core API. Core creation is always attempted in ${solr.home}.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org