On 11/26/22 20:07, Aravind Reddy Jangam wrote:
I started solr in cloud mode & ran below command to create collection
./solr create_collection -c doc1 -s 4 -rf 2 -force
I noticed all cores are created in same server
can you please share process to create cores on different server, I would like
each shard data to be on separate server
SolrCloud should distribute replicas across the cluster. I suspect that
what you might have is a situation where each node is in a completely
separate cluster from all the others and so doesn't know about them.
Can you run the following command, or visit the given URL in a browser
if curl is not available? Change the hostname from localhost and the
port number from 8983 if required:
curl
http://localhost:8983/solr/admin/zookeeper?detail=true&path=%2Flive_nodes
What are the precise commands/steps you used to install Solr, configure
it to cloud mode, and start it?
You should NOT run bin/solr as root. I notice that you have "-force" on
the command above, which suggests that you are running it as root.
Thanks,
Shawn