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 "Lapera-Valenzuela, Elizabeth [Primerica]" <El...@Primerica.com> on 2013/01/30 12:37:00 UTC
configuring datasource for dynamic password and user
Hi, we will be using solr on development, test and prod platforms. Is
there a way to dynamically create the datasource so that the url,
password and user id is passed in or can I point it to a properties file
that has this info? Thanks
Re: configuring datasource for dynamic password and user
Posted by Michael Della Bitta <mi...@appinions.com>.
Sorry, email sent too quickly. Here's the second url:
http://wiki.apache.org/solr/SolrConfigXml?highlight=%28solrconfig%5C.xml%29#System_property_substitution
Michael Della Bitta
------------------------------------------------
Appinions
18 East 41st Street, 2nd Floor
New York, NY 10017-6271
www.appinions.com
Where Influence Isn’t a Game
On Wed, Jan 30, 2013 at 10:42 AM, Michael Della Bitta
<mi...@appinions.com> wrote:
> Hi Elizabeth,
>
> I haven't tried this, but given this entry:
>
> http://wiki.apache.org/solr/DataImportHandler#Adding_datasource_in_solrconfig.xml
>
> You should be able to parameterize the arguments in solrconfig.xml
> with environment variables and then set them in solr.xml or at runtime
> using command line arguments like this:
>
>
> Michael
>
> Michael Della Bitta
>
> ------------------------------------------------
> Appinions
> 18 East 41st Street, 2nd Floor
> New York, NY 10017-6271
>
> www.appinions.com
>
> Where Influence Isn’t a Game
>
>
> On Wed, Jan 30, 2013 at 6:37 AM, Lapera-Valenzuela, Elizabeth
> [Primerica] <El...@primerica.com> wrote:
>> Hi, we will be using solr on development, test and prod platforms. Is
>> there a way to dynamically create the datasource so that the url,
>> password and user id is passed in or can I point it to a properties file
>> that has this info? Thanks
>>
Re: configuring datasource for dynamic password and user
Posted by Michael Della Bitta <mi...@appinions.com>.
Hi Elizabeth,
I haven't tried this, but given this entry:
http://wiki.apache.org/solr/DataImportHandler#Adding_datasource_in_solrconfig.xml
You should be able to parameterize the arguments in solrconfig.xml
with environment variables and then set them in solr.xml or at runtime
using command line arguments like this:
Michael
Michael Della Bitta
------------------------------------------------
Appinions
18 East 41st Street, 2nd Floor
New York, NY 10017-6271
www.appinions.com
Where Influence Isn’t a Game
On Wed, Jan 30, 2013 at 6:37 AM, Lapera-Valenzuela, Elizabeth
[Primerica] <El...@primerica.com> wrote:
> Hi, we will be using solr on development, test and prod platforms. Is
> there a way to dynamically create the datasource so that the url,
> password and user id is passed in or can I point it to a properties file
> that has this info? Thanks
>
Re: configuring datasource for dynamic password and user
Posted by Walter Underwood <wu...@wunderwood.org>.
This was discussed last week, with two different solutions:
http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201301.mbox/browser
In general, you can set a Java property, like "-Ddbpass=fred", then use it in the config files as "${dbpass}".
wunder
On Jan 30, 2013, at 3:37 AM, Lapera-Valenzuela, Elizabeth [Primerica] wrote:
> Hi, we will be using solr on development, test and prod platforms. Is
> there a way to dynamically create the datasource so that the url,
> password and user id is passed in or can I point it to a properties file
> that has this info? Thanks
>