Re: datadir configuration
the jndi variables are not picked up for placeholder replacement. On Wed, Oct 7, 2009 at 5:44 PM, clico wrote: > > I tried this in my context.xml > It doesn't work > name="solr/home" > type="java.lang.String" > value="D:\workspace\solr\home" > override="true" /> > name="solr.data.dir" > type="java.lang.String" > value="D:workspace\solr\datas" > override="true" /> > > -- > View this message in context: > http://www.nabble.com/datadir-configuration-tp25782469p25783937.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- - Noble Paul | Principal Engineer| AOL | http://aol.com
Re: datadir configuration
I tried this in my context.xml It doesn't work -- View this message in context: http://www.nabble.com/datadir-configuration-tp25782469p25783937.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: datadir configuration
On Wed, Oct 7, 2009 at 2:56 PM, clico wrote: > > What do I put in > ${solr.foo.data.dir:/default/path/to/datadir} > ? > > What is /default/path/to/datadir? > > Solr variables are written like: ${variable_name:default_value} If you are configuring the dataDir as an environment variable, you can remove the default value. -- Regards, Shalin Shekhar Mangar.
Re: datadir configuration
What do I put in ${solr.foo.data.dir:/default/path/to/datadir} ? What is /default/path/to/datadir? Gasol Wu wrote: > > Hi, > > add JAVA_OPTS variable in TOMCAT_HOME/bin/catalina.sh like below, > JAVA_OPTS="$JAVA_OPTS -Dsolr.home=/opt/solr > -Dsolr.foo.data.dir=/opt/solr/data" > > solr.data.dir must mapping to in solrconfig.xml > > here is example (solrconfig.xml): > ${solr.foo.data.dir:/default/path/to/datadir} > > On Wed, Oct 7, 2009 at 4:27 PM, clico wrote: > >> >> hello >> As I try to deploy my app on a tomcat server, I'd like to custome datadir >> variable outside the solrconfig.xml file. >> >> Is there a way to custom it in a context file? >> >> Thanks >> -- >> View this message in context: >> http://www.nabble.com/datadir-configuration-tp25782469p25782469.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/datadir-configuration-tp25782469p25783320.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: datadir configuration
Hi, add JAVA_OPTS variable in TOMCAT_HOME/bin/catalina.sh like below, JAVA_OPTS="$JAVA_OPTS -Dsolr.home=/opt/solr -Dsolr.foo.data.dir=/opt/solr/data" solr.data.dir must mapping to in solrconfig.xml here is example (solrconfig.xml): ${solr.foo.data.dir:/default/path/to/datadir} On Wed, Oct 7, 2009 at 4:27 PM, clico wrote: > > hello > As I try to deploy my app on a tomcat server, I'd like to custome datadir > variable outside the solrconfig.xml file. > > Is there a way to custom it in a context file? > > Thanks > -- > View this message in context: > http://www.nabble.com/datadir-configuration-tp25782469p25782469.html > Sent from the Solr - User mailing list archive at Nabble.com. > >
datadir configuration
hello As I try to deploy my app on a tomcat server, I'd like to custome datadir variable outside the solrconfig.xml file. Is there a way to custom it in a context file? Thanks -- View this message in context: http://www.nabble.com/datadir-configuration-tp25782469p25782469.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: dataDir configuration
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 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 > 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 > INFO: Loaded SolrConfig: solrconfig.xml > Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrCore > 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 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
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 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 INFO: Loaded SolrConfig: solrconfig.xml Feb 26, 2009 11:17:09 AM org.apache.solr.core.SolrCore 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 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