{"rsdb":{"rid":"309085","subhead":"","postdate":"0","aid":"224247","fid":"118","uid":"1","topic":"1","content":"
\n\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t \n\t\t\t\t\t\t
\n

Hbase\u67b6\u6784<\/em><\/strong><\/span><\/p>

\"\"
<\/p>

Hbase Region\u7684\u62c6\u5206\u548c\u5408\u5e76<\/span><\/em><\/strong>
<\/p>

\u5bf9\u547d\u4ee4\u4e0d\u719f\u67e5\u770b\u5e2e\u52a9\u6587\u6863<\/p>

help 'split'
<\/p>

hbase(main):035:0> scan 'hbase:meta'\nROW                            COLUMN+CELL                                                                                                                                                                                           \n t1,,1530806198356.7f0f2d9ea8d column=info:regioninfo, timestamp=1530806199040, value={ENCODED => 7f0f2d9ea8d2274067b8\n 2274067b881ffa2858201.        81ffa2858201, NAME => 't1,,1530806198356.7f0f2d9ea8d2274067b881ffa2858201.', STARTKEY =\n                               > '', ENDKEY => ''}                                                                    \n t1,,1530806198356.7f0f2d9ea8d column=info:seqnumDuringOpen, timestamp=1530806199040, value=\\x00\\x00\\x00\\x00\\x00\\x00\\x\n 2274067b881ffa2858201.        00\\x02                                                                                 \n t1,,1530806198356.7f0f2d9ea8d column=info:server, timestamp=1530806199040, value=slave1:16020                        \n 2274067b881ffa2858201.                                                                                               \n t1,,1530806198356.7f0f2d9ea8d column=info:serverstartcode, timestamp=1530806199040, value=1530800858694              \n 2274067b881ffa2858201.  <\/code><\/pre>\u533a\u57df\u5207\u5272

<\/p>

hbase(main):036:0> split 't1','row5'<\/code><\/pre>
hbase(main):037:0> scan 'hbase:meta'\nROW                            COLUMN+CELL                                                                                                                                                                                         \n t1,,1530806198356.7f0f2d9ea8d column=info:regioninfo, timestamp=1530806548876, value={ENCODED => 7f0f2d9ea8d2274067b8\n 2274067b881ffa2858201.        81ffa2858201, NAME => 't1,,1530806198356.7f0f2d9ea8d2274067b881ffa2858201.', STARTKEY =\n                               > '', ENDKEY => '', OFFLINE => true, SPLIT => true}                                    \n t1,,1530806198356.7f0f2d9ea8d column=info:seqnumDuringOpen, timestamp=1530806199040, value=\\x00\\x00\\x00\\x00\\x00\\x00\\x\n 2274067b881ffa2858201.        00\\x02                                                                                 \n t1,,1530806198356.7f0f2d9ea8d column=info:server, timestamp=1530806199040, value=slave1:16020                        \n 2274067b881ffa2858201.                                                                                               \n t1,,1530806198356.7f0f2d9ea8d column=info:serverstartcode, timestamp=1530806199040, value=1530800858694              \n 2274067b881ffa2858201.                                                                                               \n t1,,1530806198356.7f0f2d9ea8d column=info:splitA, timestamp=1530806548876, value={ENCODED => fd3edcb4a6a379e1d02a09bf\n 2274067b881ffa2858201.        fb2c000e, NAME => 't1,,1530806548546.fd3edcb4a6a379e1d02a09bffb2c000e.', STARTKEY => ''\n                               , ENDKEY => 'row5'} <\/span>                                                                   \n t1,,1530806198356.7f0f2d9ea8d column=info:splitB, timestamp=1530806548876, value={ENCODED => 8d9e7d15ef84880fe64fee29\n 2274067b881ffa2858201.        e9f963c9, NAME => 't1,row5,1530806548546.8d9e7d15ef84880fe64fee29e9f963c9.', STARTKEY =\n                               > 'row5', ENDKEY => ''}     <\/span>                                                           \n t1,,1530806548546.fd3edcb4a6a column=info:regioninfo, timestamp=1530806548996, value={ENCODED => fd3edcb4a6a379e1d02a\n 379e1d02a09bffb2c000e.        09bffb2c000e, NAME => 't1,,1530806548546.fd3edcb4a6a379e1d02a09bffb2c000e.', STARTKEY =\n                               > '', ENDKEY => 'row5'}                                                                \n t1,,1530806548546.fd3edcb4a6a column=info:seqnumDuringOpen, timestamp=1530806548996, value=\\x00\\x00\\x00\\x00\\x00\\x00\\x\n 379e1d02a09bffb2c000e.        00\\x10                                                                                 \n t1,,1530806548546.fd3edcb4a6a column=info:server, timestamp=1530806548996, value=slave1:16020                        \n 379e1d02a09bffb2c000e.                                                                                               \n t1,,1530806548546.fd3edcb4a6a column=info:serverstartcode, timestamp=1530806548996, value=1530800858694              \n 379e1d02a09bffb2c000e.                                                                                               \n t1,row5,1530806548546.8d9e7d1 column=info:regioninfo, timestamp=1530806548990, value={ENCODED => 8d9e7d15ef84880fe64f\n 5ef84880fe64fee29e9f963c9.    ee29e9f963c9, NAME => 't1,row5,1530806548546.8d9e7d15ef84880fe64fee29e9f963c9.', STARTK\n                               EY => 'row5', ENDKEY => ''}                                                            \n t1,row5,1530806548546.8d9e7d1 column=info:seqnumDuringOpen, timestamp=1530806548990, value=\\x00\\x00\\x00\\x00\\x00\\x00\\x\n 5ef84880fe64fee29e9f963c9.    00\\x11                                                                                 \n t1,row5,1530806548546.8d9e7d1 column=info:server, timestamp=1530806548990, value=slave1:16020                        \n 5ef84880fe64fee29e9f963c9.                                                                                           \n t1,row5,1530806548546.8d9e7d1 column=info:serverstartcode, timestamp=1530806548990, value=1530800858694              \n 5ef84880fe64fee29e9f963c9.                                                                                           \n4 row(s) in 0.0760 seconds\n<\/code><\/pre>

\u5408\u5e76\u533a\u57df
<\/p>

help 'merge_region'
<\/p>

hbase(main):002:0> merge_region 'fd3edcb4a6a379e1d02a09bffb2c000e','8d9e7d15ef84880fe64fee29e9f963c9'<\/code><\/pre>
hbase(main):003:0> scan 'hbase:meta'\nROW                            COLUMN+CELL                                                                                                                                                                                        \n t1,,1530807155134.02a60a9ae01 column=info:mergeA, timestamp=1530807155366, value=PBUF\\x08\\xC2\\xF0\\xB8\\xD9\\xC6,\\x12\\x0\n 9186e39f825a13f75e52c.        D\\x0A\\x07default\\x12\\x02t1\\x1A\\x00\"\\x04row5(\\x000\\x008\\x00                             \n t1,,1530807155134.02a60a9ae01 column=info:mergeB, timestamp=1530807155366, value=PBUF\\x08\\xC2\\xF0\\xB8\\xD9\\xC6,\\x12\\x0\n 9186e39f825a13f75e52c.        D\\x0A\\x07default\\x12\\x02t1\\x1A\\x04row5\"\\x00(\\x000\\x008\\x00                             \n t1,,1530807155134.02a60a9ae01 column=info:regioninfo, timestamp=1530807155457, value={ENCODED => 02a60a9ae019186e39f8\n 9186e39f825a13f75e52c.        25a13f75e52c, NAME => 't1,,1530807155134.02a60a9ae019186e39f825a13f75e52c.', STARTKEY =\n                               > '', ENDKEY => ''}       <\/span>                                                             \n t1,,1530807155134.02a60a9ae01 column=info:seqnumDuringOpen, timestamp=1530807155457, value=\\x00\\x00\\x00\\x00\\x00\\x00\\x\n 9186e39f825a13f75e52c.        00\\x12                                                                                 \n t1,,1530807155134.02a60a9ae01 column=info:server, timestamp=1530807155457, value=slave1:16020                        \n 9186e39f825a13f75e52c.                                                                                               \n t1,,1530807155134.02a60a9ae01 column=info:serverstartcode, timestamp=1530807155457, value=1530800858694              \n 9186e39f825a13f75e52c.                                                                                             <\/code><\/pre>


<\/p>


<\/p>

\u67e5\u770b\u8868\u4e2d\u7684\u6570\u636escan<\/p>

hbase(main):004:0> scan 't1'\nROW                            COLUMN+CELL                                                                            \n row1                          column=f1:name, timestamp=1530806250885, value=jhy                                     \n row10                         column=f1:age, timestamp=1530806398543, value=15                                       \n row2                          column=f1:age, timestamp=1530806285995, value=11                                       \n row3                          column=f1:name, timestamp=1530806304461, value=jq                                      \n row4                          column=f1:age, timestamp=1530806319056, value=12                                       \n row5                          column=f1:age, timestamp=1530806327636, value=13                                       \n row6                          column=f1:name, timestamp=1530806339104, value=je                                      \n row7                          column=f1:name, timestamp=1530806355273, value=jr                                      \n row8                          column=f1:age, timestamp=1530806365521, value=14                                       \n row9                          column=f1:name, timestamp=1530806376306, value=jt  <\/code><\/pre>


<\/p>

\u6570\u636e\u683c\u5f0f\u6574\u7406\u524d\uff1a<\/p>

 hbase:namespace,,152984229398 column=info:regioninfo, timestamp=1530800884101, value={ENCODED => 619ca07293413505238b\n 5.619ca07293413505238b9027287 9027287604f5, NAME => 'hbase:namespace,,1529842293985.619ca07293413505238b9027287604f5.\n 604f5.                        ', STARTKEY => '', ENDKEY => ''}                                                       \n hbase:namespace,,152984229398 column=info:seqnumDuringOpen, timestamp=1530800884101, value=\\x00\\x00\\x00\\x00\\x00\\x00\\x\n 5.619ca07293413505238b9027287 00                                                                                     \n 604f5.                                                                                                               \n hbase:namespace,,152984229398 column=info:server, timestamp=1530800884101, value=master:16020                        \n 5.619ca07293413505238b9027287                                                                                        \n 604f5.                                                                                                               \n hbase:namespace,,152984229398 column=info:serverstartcode, timestamp=1530800884101, value=1530800863510              \n 5.619ca07293413505238b9027287                                                                                        \n 604f5.   <\/code><\/pre>

\u6570\u636e\u6574\u7406\u540e\uff1a<\/p>

 hbase:namespace,,1529842293985.619ca07293413505238b9027287604f5. column=info:regioninfo, \n\t\t\t\t\t\t\t\t  timestamp=1530800884101, \n\t\t\t\t\t\t\t\t  value={ENCODED => 619ca07293413505238b9027287604f5, \n\t\t\t\t\t\t\t\t  NAME => 'hbase:namespace,,1529842293985.619ca07293413505238b9027287604f5.', \n\t\t\t\t\t\t\t\t  STARTKEY => '', \n\t\t\t\t\t\t\t\t  ENDKEY => ''}                                                       \n hbase:namespace,,1529842293985.619ca07293413505238b9027287604f5. column=info:seqnumDuringOpen, \n\t\t\t\t\t\t\t\t  timestamp=1530800884101, \n\t\t\t\t\t\t\t          value=\\x00\\x00\\x00\\x00\\x00\\x00\\x00                                                                                     \n                                                                                                                \n hbase:namespace,,1529842293985.619ca07293413505238b9027287604f5. column=info:server, \n\t\t\t\t\t\t\t\t  timestamp=1530800884101, \n\t\t\t\t\t\t\t\t  value=master:16020                        \n                                                                                         \n                                                                                                                \n hbase:namespace,,1529842293985.619ca07293413505238b9027287604f5. column=info:serverstartcode, \n\t\t\t\t\t\t\t\t  timestamp=1530800884101, \n\t\t\t\t\t\t\t\t  value=1530800863510   <\/code><\/pre>
<\/div>\n <\/div>","orderid":"0","title":"Hbase\u67b6\u6784   Hbase Region\u7684\u62c6\u5206\u548c\u5408\u5e76","smalltitle":"","mid":"0","fname":"HBase","special_id":"0","bak_id":"0","info":"0","hits":"487","pages":"1","comments":"0","posttime":"2019-05-15 13:36:59","list":"1557898619","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"Hbase<\/A> \u67b6\u6784<\/A>  <\/A> Region<\/A> \u62c6\u5206<\/A> \u5408\u5e76<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";s:4:\"head\";s:0:\"\";}","target":"0","ip":"47.106.78.186","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":" Hbase\u67b6\u6784Hbase Region\u7684\u62c6\u5206\u548c\u5408\u5e76\u5bf9\u547d\u4ee4\u4e0d\u719f\u67e5\u770b\u5e2e\u52a9\u6587\u6863help 'split'hbase(main):035:0> scan 'hbase:meta'ROW COLUMN+CELL ..","lastview":"1718996090","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}