Unless this is a copy/paste error, it's just wrong <G>

-DjhostPort=8080

jhostPort?

But more to the point, your specification is wrong. The
sysprop that would be substituted is "port" since that's what's
in ${port:}.

Try:
<int name="hostPort">${hostPort:}</int>

Best
Erick


On Tue, Aug 13, 2013 at 3:47 AM, Prasi S <prasi1...@gmail.com> wrote:

> Hi,
> when i set solr hostPort in tomcat system properties, it is not working. If
> I specify that in solr.xml then it is working. Is it mandatory that
> hostPort shouls be set only in solr.xml ?
>
> Solr.xml setting:
>
> <solr>
>
>   <solrcloud>
>     <str name="host">${host:}</str>
> *    <int name="hostPort">${port:}</int>*
>
> Tomcat runtime setting:
> *
> *
> *set JAVA_OPTS=-Dprogram.name=%PROGNAME%
> -Dlogging.configuration=file:%DIRNAME%logging.properties -DhostContext=solr
> -Dhost=10.239.30.27 -DjhostPort=8080
> *
> *
> *
> Thanks,
> Prasi
>

Reply via email to