//拆分一个shard
http://172.37.37.27:8983/admin/collections?
action=SPLITSHARD
&collection=hbase&shard=shard1
//删除某个分片
//shard6:分片名字
//dbone_shard6_replica1:数据节点的名字
http://bd33:8111/solr-cloud/admin/collections?action=DELETESHARD
&name=dbone_shard6_replica1
&collection=dbone&shard=shard6
//在30上创建wxshi_collection索引集,并创建shard1分片,
//索引目录为:/usr/wxshi/solrCloud/collection1
// 数据目录为:/usr/wxshi/solrCloud/index_data
http://172.16.37.30:8080/solr/admin/cores?action=CREATE&
name=wxshi_collection-shard1-replica1&
instanceDir=/usr/wxshi/solrCloud/collection1&
dataDir=/usr/wxshi/solrCloud/index_data&
collection=wxshi_collection&shard=shard1
//在在wxshi_collection 索引集上,40上创建shard2分片,
//索引目录为:/usr/wxshi/solrCloud/collection1
//数据目录为:/usr/wxshi/solrCloud/index_data
http://172.16.37.40:8080/solr/admin/cores?action=CREATE&
name=wxshi_collection-shard2-replica1&
instanceDir=/usr/wxshi/solrCloud/collection1&
dataDir=/usr/wxshi/solrCloud/index_data&
collection=wxshi_collection&shard=shard2
//在wxshi_collection 索引集上,41上创建shard3分片,
//索引目录为:/usr/wxshi/solrCloud/collection1
// 数据目录为:/usr/wxshi/solrCloud/index_data
http://172.16.37.41:8080/solr/admin/cores?action=CREATE&
name=cz_collection
//在40上并创建属于shard1的副本
//索引目录为:/usr/wxshi/solrCloud/collection1
// 数据目录为:/usr/wxshi/solrCloud/index_data
http://172.16.37.40:8080/solr/admin/cores?action=CREATE&
name=wxshi_collection-shard1-replica2&
instanceDir=/usr/wxshi/solrCloud/collection2&
dataDir=/usr/wxshi/solrCloud/index_data2&
collection=wxshi_collection&shard=shard1
//在41上并创建属于shard2的副本
//索引目录为:/usr/wxshi/solrCloud/collection1
// 数据目录为:/usr/wxshi/solrCloud/index_data
http://172.16.37.41:8080/solr/admin/cores?action=CREATE&
name=wxshi_collection-shard2-replica3&
instanceDir=/usr/wxshi/solrCloud/collection3&
dataDir=/usr/wxshi/solrCloud/index_data3&
collection=wxshi_collection&shard=shard2
//在30上并创建属于shard3的副本
//索引目录为:/usr/wxshi/solrCloud/collection1
// 数据目录为:/usr/wxshi/solrCloud/index_data
http://172.16.37.30:8080/solr/admin/cores?action=CREATE&
name=wxshi_collection-shard3-replica2&
instanceDir=/usr/wxshi/solrCloud/collection2&
dataDir=/usr/wxshi/solrCloud/index_data2&
collection=wxshi_collection&shard=shard3
http://172.16.37.40:8080/solr/admin/cores?action=CREATE&
name=wxshi_collection-shard3-replica3&
instanceDir=/usr/wxshi/solrCloud/collection3&
dataDir=/usr/wxshi/solrCloud/index_data4&
collection=wxshi_collection&shard=shard3