摘要: 在mongo2.2.2版本中,mongodump的collections文件,会同步生成一个metadata.json文件。这与之前的版本不同。目前查看到的该json文件中只包含了索引信息。该信息在mongorestore时会使用到,恢复完毕数据后,会创建索引。但该json文件中不包含分片信息,所以如果恢复集群中的表,还是需要先建好分片表,然后再执行mongorestore(执行时不要用drop参数)。C:\>mongodump -h 192.168.69.205 --port 1234 -d testDB -c test_tianyc01 -o D:\tianyuechaoconnec 阅读全文
posted @ 2013-01-09 15:30 醇酒醉影 阅读(1456) 评论(0) 推荐(0) 编辑
摘要: 升级步骤1. 关闭balancer登陆mongos,执行sh.stopBalancer(),或者连接到mongos>use config>db.settings.update( { _id: "balancer" }, { $set : { stopped: true } } , true );关闭balancer后,需检查是否还有migretion:If a migration is in progress, the system will complete the in-progress migration. After disabling, you can 阅读全文
posted @ 2013-01-09 14:25 醇酒醉影 阅读(1337) 评论(0) 推荐(0) 编辑
摘要: 1. I get some errors when setup JDK, these can be ignored.[root@localhost tools]# rpm -ivh jdk-7u10-linux-i586.rpm Preparing... ########################################### [100%] 1:jdk ########################################### [100%]Unpacking JAR files... rt.jar...Error: Could not open input file: 阅读全文
posted @ 2013-01-09 11:46 醇酒醉影 阅读(2327) 评论(0) 推荐(1) 编辑