On 3/26/2022 3:42 PM, Phil Budne wrote:
How do I configure the node hostname?
I see "-Dhost=${HOSTNAME}" being passed to the jvm on startup.
The actual setting of that value is accomplished in solr.xml. The
default stock solr.xml file has these three lines under the <solrcloud>
section. These use system properties, set using the syntax you showed:
<str name="host">${host:}</str>
<int name="hostPort">${solr.port.advertise:0}</int>
<str name="hostContext">${hostContext:solr}</str>
The ":0" on the second line there seems wrong to me, but I haven't heard
about any big problems with node registration in ZK, so it must be OK.
Thanks,
Shawn