You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Thijs <vo...@gmail.com> on 2009/02/26 11:56:06 UTC

dataDir configuration

Hi,

I just upgraded from solr-1.3-dev to 1.4-dev and I'm having issues with 
the location of the dataDir.

I configure solr through -Dsolr.solr.home= /u01/app/apptest/solr
In v1.3 the datadir is located in /u01/app/apptest/solr/data

However when I dorp the 1.4 war in place the dataDir is opened at 
/u01/app/apptest/apache-solr/bin/data
this is the tomcat installation dir.

This is the LOG from starting up tomcat:
INFO: using system property solr.solr.home: /u01/app/apptest/solr
Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to '/u01/app/apptest/solr/'
Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrResourceLoader 
createClassLoader
INFO: Reusing parent classloader
Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrConfig <init>
INFO: Loaded SolrConfig: solrconfig.xml
Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrCore <init>
INFO: Opening new SolrCore at /u01/app/apptest/solr/, dataDir=./data/

And this is from solr admin
cwd=/u01/app/apptest/apache-solr/bin
SolrHome=/u01/app/apptest/solr/

I don't have a solr.xml nor do I have a <dataDir /> configured in 
solrconfig.xml

Has the behavior changed from the dataDir being relative to solrHome, to 
being relative to the working directory?
Do I have to set this manually to the correct directory?


Thijs

Re: dataDir configuration

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com>.
I guess this is a bug introduced by SOLR-943. We shall raise an
issue.(JIRA is down now)
--Noble

On Thu, Feb 26, 2009 at 4:26 PM, Thijs <vo...@gmail.com> wrote:
> Hi,
>
> I just upgraded from solr-1.3-dev to 1.4-dev and I'm having issues with the
> location of the dataDir.
>
> I configure solr through -Dsolr.solr.home= /u01/app/apptest/solr
> In v1.3 the datadir is located in /u01/app/apptest/solr/data
>
> However when I dorp the 1.4 war in place the dataDir is opened at
> /u01/app/apptest/apache-solr/bin/data
> this is the tomcat installation dir.
>
> This is the LOG from starting up tomcat:
> INFO: using system property solr.solr.home: /u01/app/apptest/solr
> Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrResourceLoader <init>
> INFO: Solr home set to '/u01/app/apptest/solr/'
> Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrResourceLoader
> createClassLoader
> INFO: Reusing parent classloader
> Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrConfig <init>
> INFO: Loaded SolrConfig: solrconfig.xml
> Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrCore <init>
> INFO: Opening new SolrCore at /u01/app/apptest/solr/, dataDir=./data/
>
> And this is from solr admin
> cwd=/u01/app/apptest/apache-solr/bin
> SolrHome=/u01/app/apptest/solr/
>
> I don't have a solr.xml nor do I have a <dataDir /> configured in
> solrconfig.xml
>
> Has the behavior changed from the dataDir being relative to solrHome, to
> being relative to the working directory?
> Do I have to set this manually to the correct directory?
>
>
> Thijs
>



-- 
--Noble Paul