In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
What is Jumbo chunk?
Is the chunk that exceeds the set chunk size. The default chunk size is 64m.
Why deal with Jumbo chunk?
Jumbo chunk cannot be migrated
How to deal with it? # first find Jumbo chunk information sh.status (true) {"phone": NumberLong ("xxxxxx")}-> {"phone": NumberLong ("yyyyyyy")} on: shard_rep1 Timestamp (1,19) jumbo# execute # for the above Jumbo block, execute the following command sh.splitFind ("db.tb", {shardkeyX: "shardkeyXValue_in_range"}) script automatic processing: 1. Since sh.status (true) can find jumbo chunk, there must be jumbo information 2. 5 recorded in the config library. Quickly find the data marked jumbo from the metadata table of chunk. Processing very large data blocks can be copied to mongos shell and executed db = db.getSiblingDB ('config'); var goblins=db.chunks.find ({"jumbo": true}) goblins.forEach (function (item) {databaseDotTable = item.ns;minShardKeyInfo = item.min;maxShardKeyInfo = item.maxfor (var i in minShardKeyInfo) {var key=i; var value=minShardKeyInfo [I] If (typeof (value) = = "function") {for (var j in maxShardKeyInfo) {value = maxShardKeyInfo [j]}} var findFilter = {} findFilter [key] = valueprint (`Doing db.adminCommand ({"${databaseDotTable}", {${key}: ${value})} `); result=db.adminCommand ({split:databaseDotTable,find:findFilter}); printjson (result)}) remarks
1. It is officially recommended to use a more automatic sh.splitFind instead of the original sh.splitAt function
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un