lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From con <convo...@gmail.com>
Subject Re: Custom path for solr lib and data folder
Date Wed, 11 Mar 2009 09:14:17 GMT



Thanks nobble for the quick reply,

But still it is not working

I changed the data directory accordingly,
<dataDir>${SOLR_DATA}</dataDir>

But this is not working and is giving the following error:

SEVERE: Error in solrconfig.xml:org.apache.solr.common.SolrException: No
system property or default value specified for SOLR_DATA

But from the command prompt if do echo %SOLR_DATA% it is giving the expected
path.

Also is there any way to point solr to an extenal lib directory.
I have an application level lib directory outside of solr, and i need to put
all jars there.

Any possible solution for this problem is really appreciated.




Noble Paul നോബിള്‍  नोब्ळ् wrote:
> 
> environment variables do not work in  solr.xml
> 
> datadir must not be specified like this
> <dataDir>${solr.data.dir:"%SOLR_DATA%"}</dataDir>
> 
> it should be like
> <dataDir>${SOLR_DATA}</dataDir>
> the part aftyer the colon is the default value
> 
> 
> 
> On Wed, Mar 11, 2009 at 1:53 PM, con <convoyer@gmail.com> wrote:
>>
>> Hi All
>>
>> Because of my particular development environment, I want to set up solr
>> in
>> such a way that
>>
>> 1) The shared lib have to be relocated to another path : This location
>> must
>> be read from an environment variable.
>>
>>        I am using solr multi-core and in the solr.xml I tried to specify
>> the
>> shared lib folder to a seperate directory.
>>        But it is not taking the environment variable. Even if I give a
>> absolute
>> path, it is trying to append the absolute path to the current working
>> directory.
>>
>>        <solr persistent="true" sharedLib="%COMMON_LIB%"> this is not
>> working
>>        <solr persistent="true" sharedLib="C:\lib"> this also is not
>> working
>>
>> 2) The data dir must be in a different path : The location must be read
>> from
>> another environment variable
>>
>>        To specify the data directory, i updated the solrconfig.xml and
>> set,
>>        <dataDir>${solr.data.dir:C:\search\data\employees}</dataDir>
this
>> is
>> working
>>        but I want to replace this with an environment variable, like:
>>        <dataDir>${solr.data.dir:"%SOLR_DATA%"}</dataDir>
>>
>> How is it possible in solr 1.3
>>
>> Thanks
>> con
>> --
>> View this message in context:
>> http://www.nabble.com/Custom-path-for-solr-lib-and-data-folder-tp22450530p22450530.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> --Noble Paul
> 
> 

-- 
View this message in context: http://www.nabble.com/Custom-path-for-solr-lib-and-data-folder-tp22450530p22451207.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message