lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Haase (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-7323) Core Admin API looks for config sets in wrong directory
Date Sat, 28 Mar 2015 18:59:53 GMT

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

Mark Haase edited comment on SOLR-7323 at 3/28/15 6:59 PM:
-----------------------------------------------------------

The installer sets SOLR_HOME to `/var/solr/data`, and _I_ haven't changed that.

https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production#TakingSolrtoProduction-SolrHomeDirectory

{quote}
The Solr home directory (not to be confused with the Solr installation directory) is where
Solr reads its main configuration file solr.xml and manages index files. By default, the installation
script uses /var/solr/data. Take a moment to inspect the contents of the Solr home directory
on your system. At a minimum, the home directory will contain a solr.xml file. When Solr starts
up, the Solr start script passes the location of the home directory using the -Dsolr.solr.home
system property.
{quote}

But the installer puts the config sets in the Solr installation directory (/opt/solr), not
SOLR_HOME (/var/solr). So something isn't right.

* EITHER Solr should look for config sets where the installer puts them in /opt/solr (or at
least have the option to pass in an absolute path).
* OR the installer should put config sets in /var/solr, where Solr will actually look for
them.
* OR installation guide should instruct to copy config sets from Solr install dir to Solr
home. (This is the least desirable fix, though, what's the point of an installer if you have
to finish the installation manually?)


was (Author: mehaase):
The installer sets SOLR_HOME to `/var/solr/data`, and *I* haven't changed that.

https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production#TakingSolrtoProduction-SolrHomeDirectory

{quote}
The Solr home directory (not to be confused with the Solr installation directory) is where
Solr reads its main configuration file solr.xml and manages index files. By default, the installation
script uses /var/solr/data. Take a moment to inspect the contents of the Solr home directory
on your system. At a minimum, the home directory will contain a solr.xml file. When Solr starts
up, the Solr start script passes the location of the home directory using the -Dsolr.solr.home
system property.
{quote}

But the installer puts the config sets in the Solr installation directory (/opt/solr), not
SOLR_HOME (/var/solr). So something isn't right.

* EITHER Solr should look for config sets where the installer puts them in /opt/solr (or at
least have the option to pass in an absolute path).
* OR the installer should put config sets in /var/solr, where Solr will actually look for
them.
* OR installation guide should instruct to copy config sets from Solr install dir to Solr
home. (This is the least desirable fix, though, what's the point of an installer if you have
to finish the installation manually?)

> Core Admin API looks for config sets in wrong directory
> -------------------------------------------------------
>
>                 Key: SOLR-7323
>                 URL: https://issues.apache.org/jira/browse/SOLR-7323
>             Project: Solr
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 5.0
>            Reporter: Mark Haase
>
> *To Reproduce*
> Try to create a core using Core Admin API and a config set:
> {code}
> curl 'http://localhost:8983/solr/admin/cores?action=CREATE&name=new_core&configSet=basic_configs'
> {code}
> *Expected Outcome*
> Core is created in `/var/solr/data/new_core` using one of the config sets installed by
the installer script in `/opt/solr/server/solr/configsets/basic_configs`.
> *Actual Outcome*
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader"><int name="status">400</int><int name="QTime">9</int></lst><lst
name="error"><str name="msg">Error CREATEing SolrCore 'new_core': Unable to create
core [new_core] Caused by: Could not load configuration from directory /var/solr/data/configsets/basic_configs</str><int
name="code">400</int></lst>
> </response>
> {code}
> Why is it looking for config sets in /var/solr/data? I don't know. If that's where configsets
are supposed to be placed, then why does the installer put them somewhere else?
> There's no documented API to tell it to look for config sets anywhere else, either. It
will always search inside /var/solr/data.



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

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


Mime
View raw message