In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
What are the HBase design specifications, I believe many inexperienced people do not know what to do about this, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
Project
Description
Example
Namespace
Adopt the combination of English words and Arabic numerals, in which the word must be capitalized, and the first character must be an English character, not a number.
It is not recommended to use connectors (underscores) to concatenate multiple words, simple semantics can use a single word, complex semantics can use the first letter stitching of multiple words.
Try to limit the length to 4-8 characters.
Namespaces can generally be consistent with project names, organizational names, and so on.
Build the namespace according to the project name: DLQX (Power Meteorological acronym splicing form), short and clear.
Long namespace names are not recommended, for example, the following forms are not recommended: USER_INFO_MANAGE, etc.
Table name
Adopt the combination form of English words, Arabic numerals and hyphens (_), in which the words must be capitalized, and the first character must be English characters, not numbers, and multiple words can be spliced with connectors.
Try to limit the length to between 8 and 16 characters.
Try to use English words with clear meaning, but it is not recommended to use the phonetic alphabet or the first letter combination of Chinese characters.
The table name that conforms to the specification:
USER_INFO_MANAGE 、
WEATHER_DATA 、
T_ELECTRIC_GATHER et al.
Column Family name
Adopt the combination of English words and Arabic numerals, in which the word must be capitalized, and the first character must be an English character, not a number.
Try to limit the length to 1-6 characters, and too long column family names will take up more storage space.
Column family names that conform to the specification:
D1, D2, DATA and so on.
Deprecated column family names:
USER_INFO, dumb1, etc.
Column name
Adopt the combination form of English words, Arabic numerals and hyphens (_), in which the words must be capitalized, and the first character must be English characters, not numbers, and multiple words can be spliced with connectors.
Try to limit the length to between 1 and 16 characters.
Try to use English words with clear meaning, but it is not recommended to use the phonetic alphabet or the first letter combination of Chinese characters.
Column names that conform to the specification:
USER_ID, DATA_1, REMARK, etc.
The column names that are not recommended are:
UserID, 1_DATA, etc.
After reading the above, have you mastered the methods of the HBase design specification? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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
© 2024 shulou.com SLNews company. All rights reserved.