Thanks for the replies. The problem I have is that setting them at the JVM
level would mean that all instances of Solr deployed in the Tomcat instance
are forced to use the same settings. I actually want to set the properties
at the application level (e.g. in solr.xml, zoo.conf or maybe an
application level Tomcat Context.xml file).

I'll grab the Solr source and see if there's any way to do this, unless
anyone knows how off the top of their head?

Cheers,

Edd


On 9 April 2013 19:21, Furkan KAMACI <furkankam...@gmail.com> wrote:

> Hi Edd;
>
> The parameters you mentioned are JVM parameters. There are two ways to
> define them.
> First one is if you are using an IDE you can indicate them as JVM
> parameters. i.e. if you are using Intellij IDEA when you click your
> Run/Debug configurations there is a line called VM Options. You can write
> your paramters without writing "java" word in front of them.
>
> Second one is deploying your war file into Tomcat without using an IDE (I
> think this is what you want). Here is what to do:
>
> Go to tomcat home folder and under the bin folder create a file called
> setenv.sh Then add that lines:
>
> #!/bin/sh
> #
> #
> export JAVA_OPTS="$JAVA_OPTS
> -Dbootstrap_confdir=./solr/collection1/conf
> -Dcollection.configName=myconf -DzkRun
> -DzkHost=localhost:9983,localhost:8574,localhost:9900 -DnumShards=2"
>
>
>
> 2013/4/9 Edd Grant <e...@eddgrant.com>
>
> > Hi all,
> >
> > I have been working through the examples on the SolrCloud page:
> > http://wiki.apache.org/solr/SolrCloud
> >
> > I am now at the point where, rather than firing up Solr through
> start.jar,
> > I'm deploying the Solr war in to Tomcat instances. Taking the following
> > command as an example:
> >
> > java -Dbootstrap_confdir=./solr/collection1/conf
> > -Dcollection.configName=myconf -DzkRun
> > -DzkHost=localhost:9983,localhost:8574,localhost:9900 -DnumShards=2
> > -jar start.jar
> >
> > I can't figure out from the documentation how/ where I set the above
> > properties when deploying Solr as a war file. I initially thought these
> > might be configurable through solr.xml but can't find anything in the
> > documentation to support this.
> >
> > Most grateful for any pointers here.
> >
> > Cheers,
> >
> > Edd
> > --
> > Web: http://www.eddgrant.com
> > Email: e...@eddgrant.com
> > Mobile: +44 (0) 7861 394 543
> >
>



-- 
Web: http://www.eddgrant.com
Email: e...@eddgrant.com
Mobile: +44 (0) 7861 394 543

Reply via email to