On 3/19/2015 2:02 AM, davidphilip cherian wrote: > When I started solr in cloud mode(interactive) and chose 2 nodes, it > started and in the cloud-view screen it showed some different ip with url > 169.254.5.207:7574, when clicked on that, it says page not found. When I > modified url to localhost(http://localhost:7574/solr/#/~cloud) it > worked(loaded solr admin page) > Query is, Where is this ip address picked from? How to edit them?
An IP address of 169.254.x.x is what Windows will assign to a machine when a network card configured for DHCP comes up and no DHCP response is received. http://packetlife.net/blog/2008/sep/24/169-254-0-0-addresses-explained/ When Solr starts in SolrCloud mode and you do not provide a "host" property, Solr (when it is in SolrCloud mode) asks Java to ask the operating system "what is my IP address?" Whatever the response is to that question is the default hostname that Solr will use when it registers itself in zookeeper. http://wiki.apache.org/solr/SolrCloud#SolrCloud_Instance_Params In a nutshell, your operating system networking is misconfigured. Once you fix that (or provide a host property to Solr to override the bad choice), you will need to manually edit your zookeeper data to remove the bad node entry. You will probably need to use the zkCli that comes with zookeeper itself, or perhaps something like the zookeeper plugin for eclipse. Thanks, Shawn