{"id":3327,"date":"2020-06-30T15:02:48","date_gmt":"2020-06-30T07:02:48","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=3327"},"modified":"2020-06-30T16:10:51","modified_gmt":"2020-06-30T08:10:51","slug":"hyperbase%e8%bf%90%e7%bb%b4%e4%b9%8b%e7%ae%a1%e7%90%86%e7%95%8c%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=3327","title":{"rendered":"Hyperbase\u8fd0\u7ef4\u4e4b\u7ba1\u7406\u754c\u9762"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<p>\u672c\u6587\u63cf\u8ff0\u4e86Hyperbase web\u7ba1\u7406\u9875\u9762\u7684\u65e5\u5e38\u8fd0\u7ef4\u529f\u80fd\uff0c\u4e3b\u8981\u7528\u4e8eHyperbase\u670d\u52a1\u7684\u5404\u79cd\u6570\u636e\u548c\u4fe1\u606f\u7684\u67e5\u770b\u3002\u5176\u4e2d\u5927\u90e8\u5206\u529f\u80fd\u90fd\u662f\u53ea\u8bfb\u7684\uff0c\u4f46\u4e5f\u6709\u5c11\u91cf\u529f\u80fd\u53ef\u4ee5\u901a\u8fc7\u8be5\u9875\u9762\u89e6\u53d1<\/p>\n<h3>\u8be6\u7ec6\u63cf\u8ff0<\/h3>\n<p>hyperbase \u7684 WEB UI\u9875\u9762\u5305\u62ec\u4e24\u4e2a\uff1a<\/p>\n<ul>\n<li>Master <\/li>\n<li>RegionServer<\/li>\n<\/ul>\n<h4>1\u3001HMaster\u7684Web UI<\/h4>\n<ol>\n<li>Hmaster\u7ba1\u7406\u9875\u9762<br \/>\n\u53ef\u4ee5\u901a\u8fc7\u4efb\u610f hmaster \u7684 link \u8fde\u63a5\u8fdb\u884c\u8df3\u8f6c<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592189045327.png\" alt=\"file\" \/><\/p>\n<p>\u5982\u679c\u9996\u6b21\u70b9\u51fb\u7684\u662f backup \u8282\u70b9\uff0c\u5219\u8be5\u9875\u9762\u53ea\u80fd\u663e\u793a\u90e8\u5206\u4fe1\u606f\uff0c\u70b9\u51fb Master \u4e0b\u65b9\u7684\u8df3\u8f6c\u5730\u5740\uff0c\u8df3\u8f6c\u5230 active master \u7684 web \u9875\u9762<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592189186840.png\" alt=\"file\" \/><\/p>\n<p>Active master\u7684\u7ba1\u7406\u754c\u9762\u4e3b\u8981\u5305\u542bRegion Servers\uff0cBackup Masters\uff0cTables\uff0cTasks\u7b49\u76f8\u5173\u4fe1\u606f\uff0c\u4e0b\u9762\u8fdb\u884c\u8be6\u7ec6\u63cf\u8ff0<\/p>\n<ol start=\"2\">\n<li>Region Servers<br \/>\nRegion Servers \u91cc\u5305\u542b\u4fe1\u606f\uff1aBase Stats\uff0c Memory\uff0c Requests\uff0c Storefiles\uff0c Compactions\u3002<\/p>\n<ul>\n<li>Base Stats\u663e\u793a\u4e86region server\u7684\u8282\u70b9\u4fe1\u606f\uff0c\u542f\u52a8\u65f6\u95f4\uff0c\u541e\u5410\u91cf\uff0c\u4ee5\u53ca\u8282\u70b9\u4e0a\u5b58\u5728\u7684region\u4e2a\u6570\u3002<\/li>\n<li>Requests Per Second\uff1a\u6bcf\u79d2\u8bfb\u6216\u5199\u8bf7\u6c42\u6b21\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u76d1\u63a7HBase\u8bf7\u6c42\u662f\u5426\u5747\u5300\u3002\u5982\u679c\u4e0d\u5747\u5300\u9700\u8981\u6392\u67e5\u662f\u5426\u4e3a\u5efa\u8868\u7684region\u5212\u5206\u4e0d\u5408\u7406\u9020\u6210\u7684\u3002<\/li>\n<li>Num. Regions: \u6bcf\u4e2aRegionserver\u8282\u70b9\u4e0a\u7684region\u4e2a\u6570\uff0c\u89c2\u5bdf\u6bcf\u4e2a\u8282\u70b9\u7684region\u4e2a\u6570\u662f\u5426\u5747\u5300\uff0c\u5982\u679c\u4e0d\u5747\u5300\u9700\u8981\u786e\u8ba4balance\u95ee\u9898\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592276591567.png\" alt=\"file\" \/><\/p>\n<p>\u70b9\u51fbRegion Server\u4e0a\u53ef\u4ee5\u76f4\u63a5\u8df3\u8f6c\u5230\u5404\u4e2aregion\u768460030\u9875\u9762<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592276414603.png\" alt=\"file\" \/><\/p>\n<p>60030\u9875\u9762\uff1a<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592276435609.png\" alt=\"file\" \/><\/p>\n<p>Memory\uff1a\u663e\u793a\u4e86\u5404\u4e2aRegion Server\u7684\u5185\u5b58\u4fe1\u606f<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592278219205.png\" alt=\"file\" \/><\/p>\n<p>StoreFiles:\u663e\u793a\u4e86\u5404\u4e2aRegion Servers\u4e0aHFile\u7684\u5206\u5e03\u60c5\u51b5\uff0cHFile\u7684\u5927\u5c0f\uff0c\u672a\u538b\u7f29\u7684\u5927\u5c0f\u7b49\u7b49\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592279703245.png\" alt=\"file\" \/><\/p>\n<ol start=\"3\">\n<li>Backup Masters<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592274835099.png\" alt=\"file\" \/><\/p>\n<p>\u70b9\u51fbBackup Master\u4e0a\u53ef\u4ee5\u8df3\u8f6c\u5230\u5bf9\u5e94Backup Master\u7684\u7ba1\u7406\u754c\u9762<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592276523197.png\" alt=\"file\" \/><\/p>\n<p>Backup Master\u7684\u7ba1\u7406\u754c\u9762\uff1a<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592276563507.png\" alt=\"file\" \/><\/p>\n<ol start=\"4\">\n<li>Tables<br \/>\nUser Tables\uff1a<br \/>\n\u6b64\u5904\u663e\u793a\u4e86\u5f53\u524dHBase\u96c6\u7fa4\u7684\u6570\u636e\u8868\u3002\u8fd9\u4e9b\u8868\u90fd\u662f\u7528\u6237\u901a\u8fc7API\u6216HBase Shell\uff0c\u6216\u8005sql\u6240\u521b\u5efa\u7684\u8868\u3002<br \/>\n\u5e76\u4e14\u53ef\u4ee5\u67e5\u770b\u5230Region\u7684\u6570\u76ee\u3001\u4ee5\u53ca\u8868\u7684\u5143\u6570\u636e\u4fe1\u606f<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592281378461.png\" alt=\"file\" \/><\/p>\n<p>Catalog Tables \u4e2d\u5305\u542b\u56db\u5f20\u8868\uff1a<\/p>\n<ul>\n<li>hbase:acl \u5b58\u50a8hbase\u6743\u9650\u63a7\u5236\u4fe1\u606f<\/li>\n<li>hbase:meta  \u7528\u4e8e\u4fdd\u5b58\u96c6\u7fa4\u4e2dregions\u7684\u4f4d\u7f6e\u4fe1\u606f<\/li>\n<li>hbase:namespace \u4fdd\u5b58hbase\u91cc\u7684namespace\u4fe1\u606f<\/li>\n<li>hbase:snapshot  \u4fdd\u5b58\u4e86hbase\u91cc\u7684\u5feb\u7167\u4fe1\u606f<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592282174916.png\" alt=\"file\" \/><\/p>\n<p>Snapshot: \u663e\u793a\u5feb\u7167\u4fe1\u606f\uff0c\u5feb\u7167\u540d\u4ee5\u53ca\u5bf9\u5e94\u7684\u8868\u4fe1\u606f\u7b49\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592315145894.png\" alt=\"file\" \/><\/p>\n<ol start=\"5\">\n<li>Tasks<br \/>\n\u4e00\u822c\u4e0eRIT\u680f\u4e00\u8d77\u786e\u8ba4\uff0c\u5982\u679cRIT\u4e3a\u7a7a\u4e14non-RPC\u4e3a\u7a7a\u5219HBase\u670d\u52a1\u542f\u52a8\u6b63\u5e38\u3002\u540c\u65f6\u8fd9\u4e00\u680f\u663e\u793a\u4e86\u8bb8\u591aRPC\u7684\u76d1\u63a7\u6307\u6807\uff0c\u4f1a\u81ea\u52a8\u76d1\u63a7\u6bcf\u6b21\u4e0d\u540c\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7aef\u4e4b\u95f4\u7684\u64cd\u4f5c\u3002<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592274445739.png\" alt=\"file\" \/><\/p>\n<p>Regions in Transition<br \/>\n\u5904\u4e8e\u6253\u5f00\u4e2d\u3001\u5173\u95ed\u4e2d\u548c\u62c6\u5206\u4e2d\u7684region\u90fd\u4f1a\u51fa\u73b0\u5728\u8fd9\u4e00\u961f\u5217\u4e2d\uff0c\u6267\u884c\u64cd\u4f5c\u524d\uff0c\u5c06region\u52a0\u5165\u5230\u8fd9\u4e2a\u5217\u8868\u4e2d\u3002\u64cd\u4f5c\u5b8c\u6210\u540e\uff0cregion\u4f1a\u4ece\u8fd9\u4e2a\u8868\u4e2d\u79fb\u9664\u3002<br \/>\n\u4e0b\u56fe\u662f\u4e00\u4e2a\u6b63\u5728\u62c6\u5206splitting\u7684region\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592274421422.png\" alt=\"file\" \/><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592274510505.png\" alt=\"file\" \/><\/p>\n<ol start=\"6\">\n<li>Software Attributes<br \/>\n\u8fd9\u90e8\u5206\u63cf\u8ff0\u4e86\u96c6\u7fa4\u7684\u57fa\u672c\u4fe1\u606f\uff0c\u5305\u62ecHBase\u7248\u672c\u3001hadoop\u7684\u7248\u672c\u3001HBase Root Directory\u5f53\u524dHBase\u5728HDFS\u4e2d\u7684\u6839\u76ee\u5f55\u3001\u5e73\u5747\u8d1f\u8f7d\u3001Zookeeper\u7684\u8fde\u63a5\u5730\u5740\u7b49\u3002<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592272453797.png\" alt=\"file\" \/><\/p>\n<h4>2\u3001Region Server web ui<\/h4>\n<p>60030\u9875\u9762\uff0c\u8bb0\u5f55\u4e86\u5404\u4e2aregion server\u7684\u4e00\u4e9b\u76d1\u63a7\u4fe1\u606f\u3002<\/p>\n<ol>\n<li>Server Metrics<br \/>\n\u8bb0\u5f55\u4e00\u5199region server\u7684\u57fa\u672c\u4fe1\u606f\uff0c\u5305\u62ecregion\u6570\u91cf\uff0c\u5185\u5b58\u4fe1\u606f\u3001\u541e\u5410\u91cf\u3001hlogs\u3001hfiles\u3001\u961f\u5217\u60c5\u51b5\u7b49\u7b49\u3002<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592357067297.png\" alt=\"file\" \/><\/p>\n<ol start=\"2\">\n<li>Block Cache<br \/>\nRegion Server\u7ba1\u7406\u7740\u5b9e\u9645\u6570\u636e\u7684\u8bfb\u5199\uff0c\u6240\u4ee5\u9700\u8981\u6536\u96c6\u5927\u91cf\u7684\u76d1\u63a7\u6307\u6807\u4fe1\u606f\u3002<br \/>\ncache\u5c31\u662f\u5176\u4e2d\u6bd4\u8f83\u91cd\u8981\u7684\u76d1\u63a7\u6307\u6807\u3002<br \/>\nHBase\u4e0aRegion Server\u7684cache\u4e3b\u8981\u5206\u4e3a\uff1amemstore\u548cblockcache\u3002<\/p>\n<ul>\n<li>memstore\uff1a\u5199\u7f13\u5b58<\/li>\n<li>blockcache \u8bfb(\u5757)\u7f13\u5b58<br \/>\n\u5176\u4e2d\uff0c\u5757\u7f13\u5b58\u662f\u7528\u6765\u4fdd\u5b58\u5e95\u5c42HFile\u4eceHDFS\u8bfb\u53d6\u7684\u5b58\u50a8\u5757\u3002\u8fd9\u6837\uff0c\u7528\u6237\u80fd\u5c06\u4e00\u4e2a\u5757\u4fdd\u5b58\u5728\u5185\u5b58\u4e2d\uff0c\u76f4\u5230\u7a7a\u95f4\u4e0d\u8db3\u65f6\u624d\u88ab\u6e05\u9664\u51fa\u5185\u5b58\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1592357108361.png\" alt=\"file\" \/><\/p>\n<p>\u7b80\u5355\u4ecb\u7ecd\u4e0b\uff0c\u5176\u4e2dLRUBlockCache\u662f\u76ee\u524dHBase\u9ed8\u8ba4\u7684Block cache\u673a\u5236\u3002  LRU\uff08Least recently used\uff0c\u6700\u8fd1\u6700\u5c11\u4f7f\u7528\uff09\u5176\u6838\u5fc3\u601d\u60f3\u662f\uff1a\u5982\u679c\u6570\u636e\u6700\u8fd1\u88ab\u8bbf\u95ee\u8fc7\uff0c\u90a3\u4e48\u5c06\u6765\u88ab\u8bbf\u95ee\u7684\u51e0\u7387\u4e5f\u66f4\u9ad8\u3002HBase\u5728LRU\u7f13\u5b58\u57fa\u7840\u4e0a\uff0c\u91c7\u7528\u4e86\u7f13\u5b58\u5206\u5c42\u8bbe\u8ba1\uff0c\u5c06\u6574\u4e2aBlockCache\u5206\u4e3a\u4e09\u4e2a\u4f18\u5148\u7ea7\u961f\u5217\uff1asingle\uff08\u7b2c\u4e00\u6b21\u8bbf\u95ee\uff09\u3001mutil\uff08\u591a\u6b21\u8bbf\u95ee\uff09\u548cinMemory\u3002<\/p>\n<p>\u4e0b\u56fe\u7684Stats\u90e8\u5206\u663e\u793a\u4e86block cache\u7684\u4e00\u4e9b\u72b6\u6001<\/p>\n<ul>\n<li>count \u76d1\u63a7\u6307\u6807\u53cd\u6620\u4e86\u5f53\u524d\u7f13\u5b58\u4e2d\u4fdd\u5b58\u7684\u5757\u6570\u76ee\uff0c<\/li>\n<li>size \u76d1\u63a7\u6307\u6807\u662f\u5360\u7528\u7684Java\u5806\u7a7a\u95f4\u5927\u5c0f\uff0c<\/li>\n<li>free \u76d1\u63a7\u6307\u6807\u662f\u5806\u7a7a\u95f4\u4e3a\u7f13\u5b58\u4fdd\u7559\u7684\u53ef\u7528\u7a7a\u95f4\uff0c<\/li>\n<li>Evictions \u76d1\u63a7\u6307\u6807\u7edf\u8ba1\u4e86\u5f53\u5806\u7a7a\u95f4\u53d7\u9650\u65f6\uff0c\u5c06\u88ab\u79fb\u9664\u7684\u5757\u7684\u6570\u76ee\u3002<\/li>\n<li>hit \u76d1\u63a7\u6307\u6807\u8868\u53cd\u6620\u4e86\u5757\u7f13\u5b58\u547d\u4e2d\u6b21\u6570<\/li>\n<li>Misses \u8868\u793a\u7f13\u5b58\u672a\u547d\u4e2d\u7684\u6b21\u6570<\/li>\n<li>Hit Ratio \u8868\u793a\u547d\u4e2d\u7387\uff0c\u53cd\u6620\u4e86\u547d\u4e2d\u7f13\u5b58\u603b\u6570\u4e0e\u8bf7\u6c42\u7f13\u5b58\u603b\u6570\u7684\u5173\u7cfb\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/image-1593104651049.png\" alt=\"file\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u672c\u6587\u63cf\u8ff0\u4e86Hyperbase web\u7ba1\u7406\u9875\u9762\u7684\u65e5\u5e38\u8fd0\u7ef4\u529f\u80fd\uff0c\u4e3b\u8981\u7528\u4e8eHyperbase\u670d\u52a1\u7684\u5404\u79cd\u6570\u636e ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=3327\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3327","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/3327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3327"}],"version-history":[{"count":2,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/3327\/revisions"}],"predecessor-version":[{"id":3470,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/3327\/revisions\/3470"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}