Thanks for the pointer Jeff,

For SolrCloud it turned out to be...

&property.coreNodeName=xxx

btw, for your app, isn't "slice" old notation?




On 08/01/16 22:05, Jeff Wartes wrote:

I’m pretty sure you could change the name when you ADDREPLICA using a core.name 
property. I don’t know if you can when you initially create the collection 
though.

The CLUSTERSTATUS command will tell you the core names: 
https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api18

That said, this tool might make things easier.
https://github.com/whitepages/solrcloud_manager


# shows cluster status, including core names:
java -jar solrcloud_manager-assembly-1.4.0.jar -z zk0.example.com:2181/myapp


# deletes a replica by node/collection/shard (figures out the core name under 
the hood)
java -jar solrcloud_manager-assembly-1.4.0.jar deletereplica -z 
zk0.example.com:2181/myapp -c collection1 --node node1.example.com --slice 
shard2


I mention this tool every now and then on this list because I like it, but I’m 
the author, so take that with a pretty big grain of salt. Feedback is very 
welcome.







On 1/8/16, 1:18 PM, "Robert Brown" <r...@intelcompute.com> wrote:

Hi,

I'm having trouble identifying a replica to delete...

I've created a 3-shard cluster, all 3 created on a single host, then
added a replica for shard2 onto another host, no problem so far.

Now I want to delete the original shard, but got this error when trying
a *replica* param value I thought would work...

shard2/uk available replicas are core_node1,core_node4

I can't find any mention of core_node1 or core_node4 via the admin UI,
how would I know/find the name of each one?

Is it possible to set these names explicitly myself for easier maintenance?

Many thanks for any guidance,
Rob


Reply via email to