I am following this tutorial:https://gist.github.com/kalharbi/fd29661b9926eb087c45
configuring solr cloud with 2 nodes.
1.Configured zookeeper on both machine:192.168.1.56:2181(localadmin4), 192.168.1.55:2182(localadmin8) when checked status, both are working:
localadmin8@localadmin8:/opt/solr$ ../zookeeper/bin/zkServer.sh status /data/zookeeper/z2/zoo.cfg
ZooKeeper JMX enabled by default
Using config: /data/zookeeper/z2/zoo.cfg
Mode: leader
localadmin4@localadmin4:/opt/solr$ ../zookeeper/bin/zkServer.sh status /data/zookeeper/z1/zoo.cfg
ZooKeeper JMX enabled by default
Using config: /data/zookeeper/z1/zoo.cfg
Mode: follower
2.started solr
localadmin4@localadmin4:/opt/solr$ ./bin/solr start -c -p 8983 -z 192.168.1.56:2181,192.168.1.55:2182
localadmin8@localadmin8:/opt/solr$ ./bin/solr start -c -p 8984 -z 192.168.1.56:2181,192.168.1.55:2182
3.checked solr admin in browser:http://192.168.1.56:8983, http://192.168.1.55:8984 . Both the solr are working fine.
4.uploaded configuration to zookeeper: localadmin4@localadmin4:/opt/solr$ ./server/scripts/cloud-scripts/zkcli.sh -cmd upconfig -zkhost 192.168.1.56:2181 -confdir ./server/solr/configsets/data_driven_schema_configs/conf/ -confname l-config
5.While creating collection: http://192.168.1.56:8983/solr/admin/collections?action=CREATE&name=onix&numShards=2&replicationFactor=1&collection.configName=l-config
it gives me following response:
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">33011</int>
</lst>
<lst name="failure">
<str name="127.0.1.1:8984_solr">org.apache.solr.client.solrj.SolrServerException:Server refused connection at: http://127.0.1.1:8984/solr</str>
</lst>
<lst name="success">
<lst name="127.0.1.1:8983_solr">
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1957</int>
</lst>
<str name="core">onix_shard2_replica1</str>
</lst>
</lst>
</response>
instead of hitting on 192.168.1.55:8984_solr , it is hitting 127.0.1.1:8984_solr.
How to resolve this issue?