mongodb 分片集群 删除片键 code : 20 sharding already enabled for collection
2017-08-30 21:14
946 查看
mongodb分片集群指定片键删除了一个collection,再次为这个collection创建片键的时候,会报错
解决办法就是在config库里面删除这个collection相关的信息,主要涉及到的collection表有locks。
解决办法如下:
这个问题真的很坑。。。。。。
{ "ok" : 0, "errmsg" : "sharding already enabled for collection test.test", "code" : 20 }
解决办法就是在config库里面删除这个collection相关的信息,主要涉及到的collection表有locks。
解决办法如下:
use config db.collections.remove( { _id: "test.test" } ) db.chunks.remove( { ns: "test.test" } ) db.locks.remove( { _id: "test.test" } ) use admin db.adminCommand("flushRouterConfig)
这个问题真的很坑。。。。。。
相关文章推荐
- MongoDB 3.2.7 for rhel6.4 副本集-分片集群部署
- mongodb sharding cluster(分片集群)
- mongodb集群分片+副本模式操作+javaCode
- Mongodb Replica Sets + Sharding 分片集群架构部署
- 【Mongodb】 Sharding Replica Sets 分片集群生产环境安装与介绍!
- mongodb sharding cluster(分片集群)
- mongodb sharding cluster(分片集群)
- mybatis(错误一) 项目启动时报“Result Maps collection already contains value forxxx”的解决方案
- Akka(13): 分布式运算:Cluster-Sharding-运算的集群分片
- Node.js使用MongoDB3.4+Access control is not enabled for the database解决方案
- Mapped Statements collection already contains value for***
- mongodb分片集群之移除分片
- 第五部分 架构篇 第十六章 MongoDB Sharding 架构(理解分片)
- mybatis Result Maps collection already contains value for com.ebways.dictionary.dao.impl.PtInfoDaoImpl.beanMap
- mongodb分片集群数据迁移(方案一)
- MongoDB集群——分片
- Mybatis出现 Mapped Statements collection already contains value for com.*.*
- mongodb分片集群(sharding with replica set)配置
- mybatisGenerator 代码自动生成报错 Result Maps collection already contains value for BaseResultMap
- Mybatis异常_02_Result Maps collection already contains value for