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

Erick Erickson commented on SOLR-7727:
--------------------------------------

You're asking me to remember from over 2 years ago? ;).

As I remember, that was a relatively awkward time where we had to support both 
old and new style solr.xml files. You could have solr.xml locally (for some 
reason) but _still_ want to read solr.xml from ZK. Now that old-style solr.xml 
is no longer supported perhaps we can move forward.

Your proposal also has the advantage of moving us a little closer to ZK being 
"the one source of truth". At first glance, the idea seems fine since if it 
wasn't up there, we'd find it on disk.



> bin/solr script incorrectly requires solr.xml in $SOLR_HOME
> -----------------------------------------------------------
>
>                 Key: SOLR-7727
>                 URL: https://issues.apache.org/jira/browse/SOLR-7727
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 5.2.1
>            Reporter: Crawdaddy
>            Assignee: Jan Høydahl
>             Fix For: 5.3, Trunk
>
>         Attachments: SOLR-7727.patch
>
>
> The bin/solr script currently requires solr.xml to exist in $SOLR_HOME, going 
> against SOLR-4718 which allows it to be hosted in Zookeeper.
> Line 1219:
> if [ ! -e "$SOLR_HOME/solr.xml" ]; then
>   echo -e "\nSolr home directory $SOLR_HOME must contain a solr.xml file!\n"
>   exit 1
> fi
> Commenting this out, and specifying the following in one's solr.in.sh, allows 
> solr.xml to once again be hosted in ZK:
> SOLR_OPTS="$SOLR_OPTS -Dsolr.solrxml.location=zookeeper"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to