On Thu, Sep 27, 2012 at 4:46 AM, JesseBuesking <jessebuesk...@gmail.com> wrote: > What configuration file sets the port to 8983 when running SolrCloud? I'd > like to change this to port 8080 since I'm running tomcat. > > These are the JAVA_OPTS that I pass to tomcat when starting the server: > -DzkHost=/*xxx.xx.xxx.xxx*/:52001 > -Dbootstrap_confdir=/usr/share/solr/collection-01/conf/ > -Dcollection.configName=collection-01-config > -DshardId=collection-01-shard-01 > > This is the clusterstate.json that is generated by zookeeper: > {"collection-01":{"collection-01-shard-01":{"dm-search-sr-01:8983_solr_core-01":{ > "shard":"collection-01-shard-01", > "roles":null, > "leader":"true", > "state":"active", > "core":"core-01", > "collection":"collection-01", > "node_name":"dm-search-sr-01:8983_solr", > "base_url":"http://dm-search-sr-01:8983/solr"}}}} > > Also, I see that the node_name/base_url are using a name "dm-search-sr-01" > instead of the ip address associated to the server. Is there a way to set > this to the ipaddress instead?
If you use the example configuration then take a look at solr.xml. In it's current state it accepts port in system property called "jetty.port" and the hostname or in your case the ip in "host". So adding -Djetty.port=xxx -Dhost=yyy to you JAVA_OPTS allow you to set them when using the default solr.xml. -- Sami Siren