solrCloud 管理
2014-11-03 10:47
232 查看
创建collection:
/soft/server/solr-4.10.0/example/scripts/cloud-scripts/zkcli.sh -cmd upconfig -zkhost localhost:2181/solrcloud -confdir /soft/server/solr-4.10.0/example/solr/sku_search/conf -confname sku_search
curl 'http://localhost:50080/solr/admin/collections?action=CREATE&name=test_date&numShards=1&replicationFactor=3'
修改collection的配置信息:
写入ZK:
sh zkcli.sh -zkhost localhost:2181/solrcloud -cmd upconfig -confdir /soft/server/solr-4.10.0-1/example/solr/collection1/conf -confname collection1
reload conf:
curl 'http://localhost:50080/solr/admin/collections?action=RELOAD&name=collection1'
删除collection
curl 'http://172.24.28.110:50080/solr/admin/collections?action=DELETE&name=test'
数据目录下只保留了目录,数据已经删除了。
zk中的该collection的信息没有被删除。
split shard
curl 'http://localhost:50080/solr/admin/collections?action=SPLITSHARD&collection=name&shard=shardID'
delete inactive shard
curl 'http://localhost:50080/solr/admin/collections?action=DELETESHARD&shard1=shardID&collection=name'
给分片创建副本:
curl 'http://localhost:50080/solr/admin/collections?action=ADDREPLICA&collection=collection&shard=shard&node=solr_node_name'
例如:curl 'http://localhost:50080/solr/admin/collections?action=ADDREPLICA&collection=test_shard&shard=shard1_0&node=172.24.28.118:50080_solr'
删除副本:
curl 'http://localhost:50080/solr/admin/collections?action=DELETEREPLICA&collection=collection&shard=shard&replica=replica'
例如:curl 'http://localhost:50080/solr/admin/collections?action=DELETEREPLICA&collection=test_shard&shard=shard1_0&replica=core_node5'
/soft/server/solr-4.10.0/example/scripts/cloud-scripts/zkcli.sh -cmd upconfig -zkhost localhost:2181/solrcloud -confdir /soft/server/solr-4.10.0/example/solr/sku_search/conf -confname sku_search
curl 'http://localhost:50080/solr/admin/collections?action=CREATE&name=test_date&numShards=1&replicationFactor=3'
修改collection的配置信息:
写入ZK:
sh zkcli.sh -zkhost localhost:2181/solrcloud -cmd upconfig -confdir /soft/server/solr-4.10.0-1/example/solr/collection1/conf -confname collection1
reload conf:
curl 'http://localhost:50080/solr/admin/collections?action=RELOAD&name=collection1'
删除collection
curl 'http://172.24.28.110:50080/solr/admin/collections?action=DELETE&name=test'
数据目录下只保留了目录,数据已经删除了。
zk中的该collection的信息没有被删除。
split shard
curl 'http://localhost:50080/solr/admin/collections?action=SPLITSHARD&collection=name&shard=shardID'
delete inactive shard
curl 'http://localhost:50080/solr/admin/collections?action=DELETESHARD&shard1=shardID&collection=name'
给分片创建副本:
curl 'http://localhost:50080/solr/admin/collections?action=ADDREPLICA&collection=collection&shard=shard&node=solr_node_name'
例如:curl 'http://localhost:50080/solr/admin/collections?action=ADDREPLICA&collection=test_shard&shard=shard1_0&node=172.24.28.118:50080_solr'
删除副本:
curl 'http://localhost:50080/solr/admin/collections?action=DELETEREPLICA&collection=collection&shard=shard&replica=replica'
例如:curl 'http://localhost:50080/solr/admin/collections?action=DELETEREPLICA&collection=test_shard&shard=shard1_0&replica=core_node5'
相关文章推荐
- zookeeper 管理 solrcloud 的配置以及安装 步骤
- solrcloud集群启动管理过程基于源码的分析
- Managing collections via the Collections API (SolrCloud、solr4.3动态管理collection的api)
- SolrCloud 与 Collection 的管理
- Solr_Cloud中的文件及collection管理
- solrCloud 管理colleciton操作,可能出现的重大Bug
- 使用ZooKeeper管理solrCloud配置文件
- 实战day08(四)----SolrCloud的Collection管理
- SolrCloud简介
- SolrCloud 5.0 路由、Collection创建与数据迁移
- Activemq实现Mysql与SolrCloud同步策略
- solr安装-tomcat+solrCloud构建稳健solr集群
- Spring Boot + Spring Cloud 实现权限管理系统 后端篇(十):接口服务整理
- solr solrcloud 检索 搜索 zookeeper 分布式 部署
- SolrCloud集群部署
- solr6管理页面访问地址
- Solr 6.5.1 SolrCloud windows使用zk安装集群
- SolrCloud Wiki翻译(1) Getting Started with SolrCloud
- Spring Boot + Spring Cloud 实现权限管理系统 后端篇(十九):服务消费(Ribbon、Feign)
- Spring Boot + Spring Cloud 实现权限管理系统 后端篇(二十三):配置中心(Config、Bus)