hbase
1.绠€浠嬶細
HBase 鈥?Hadoop Database锛屾槸涓€涓珮鍙潬鎬с€侀珮鎬ц兘銆侀潰鍚戝垪銆佸彲浼哥缉鐨勫垎甯冨紡瀛樺偍绯荤粺锛屽埄鐢℉Base鎶€鏈彲鍦ㄥ粔浠稰C Server涓婃惌寤鸿捣澶ц妯$粨鏋勫寲瀛樺偍闆嗙兢
2.HBase鍜孯DBMS鐨勫叧绯?
RDBMS(Relation DabaBase Management System-鍏崇郴鏁版嵁搴?:鐢卞叧绯绘ā鍨嬫瀯鎴愮殑鏁版嵁搴撳氨鏄叧绯绘暟鎹簱銆傚叧绯绘暟聽 鎹簱鐢卞寘鍚暟鎹褰曠殑澶氫釜鏁版嵁琛ㄧ粍鎴愶紝鐢ㄦ埛鍙湪鏈夌浉鍏虫暟鎹殑澶氫釜琛ㄤ箣闂村缓绔嬬浉浜掕仈绯汇€傚湪鍏崇郴鏁版嵁搴撲腑锛屾暟鎹鍒嗘暎鍒颁笉鍚岀殑鏁版嵁琛ㄤ腑锛屼互渚夸娇姣忎竴涓〃涓殑鏁?鎹彧璁板綍涓€娆★紝浠庤€岄伩鍏嶆暟鎹殑閲嶅杈撳叆锛屽噺灏戝啑浣欍€?
聽聽 1)鍏崇郴鏁版嵁搴撶殑涓昏鐗圭偣锛?
聽聽聽聽聽聽 a.鍏崇郴绯讳腑鐨勬瘡涓睘鎬у繀椤绘槸涓嶅彲鍒嗗壊鐨勬暟鎹崟鍏冿紙鍗宠〃涓笉鑳藉啀鍖呭惈琛級銆?
聽聽聽聽聽聽 b.鍏崇郴涓殑姣忎竴鍒楀厓绱犲繀椤绘槸绫诲瀷鐩稿悓鐨勬暟鎹€?
聽聽聽聽聽聽 c.鍚屼竴涓叧绯讳腑涓嶈兘鏈夌浉鍚岀殑瀛楁锛堝睘鎬э級锛屼篃涓嶈兘鏈夌浉鍚岀殑璁板綍銆?
聽聽聽聽聽聽 d.鍏崇郴鐨勮銆佸垪娆″簭鍙互浠绘剰浜ゆ崲锛屼笉褰卞搷鍏朵俊鎭唴瀹广€?
聽聽聽 2)Hbase閲岄潰鏈変互涓?涓富瑕佹蹇碉細
聽聽聽聽聽聽聽聽 Rowkey: Hbase 涓殑璁板綍鏄寜鐓owkey鏉ユ帓搴忕殑;鍥犳鎯崇敤hbase瀛樺偍鏁版嵁璁捐濂絩ow-key寰堥噸瑕?
聽聽聽聽聽聽聽聽 Column family锛?鍒楁棌)鏄湪绯荤粺鍚姩涔嬪墠棰勫厛瀹氫箟濂界殑;鍙湁澶氫釜鍒楃皣,鍙姩鎬佸鍔?涓€涓垪绨囧彲鍖呭惈澶氫釜鍒?
聽聽聽聽聽聽聽聽 Hbase浼樼己鐐癸細聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽 1.涓嶆敮鎸佹潯浠舵煡璇互鍙妎rderby绛夋煡璇?
聽聽聽聽聽聽聽聽聽 2.鍒楀彲浠ュ姩鎬佸鍔狅紝鍒椾负绌哄垯涓嶅瓨鍌ㄦ暟鎹紝鑺傜渷瀛樺偍绌洪棿;
聽聽聽聽聽聽聽聽聽 3.浼氳嚜鍔ㄥ垏鍒嗘暟鎹?
聽聽聽聽聽聽聽聽聽 4.鍙互鎻愪緵楂樺苟鍙戣鍐欐搷浣滅殑鏀寔;
3.琛ㄨВ鏋?
聽聽聽 row-key锛歨base鏄熀浜庡垪鐨勫瓨鍌ㄦā寮?鎵€璋撶殑鍩轰簬鍒?HBase)灏辨槸鍩轰簬row-key鐨勫瓨鍌ㄦā寮?row-key 鐩稿綋浜庡叧绯绘暟鎹簱琛ㄧ殑涓婚敭
聽聽聽 鏌ヨ鐨勬椂鍊欐牴鎹畆ow-key鍘绘煡璇?
聽聽聽 鍒楃皣锛歨base琛ㄤ腑鐨勬瘡涓€鍒楅兘褰掑睘涓轰竴涓垪绨?鍒楃皣鏄〃鐨剆chema鐨勪竴閮ㄥ垎(鍒椾笉鏄?,蹇呴』鍦ㄤ娇鐢ㄨ〃涔嬪墠瀹氫箟,鍒楀悕閮芥槸浠ュ垪绨囦负鍓嶇紑
聽聽聽聽聽聽聽聽聽 濡傦細Column family锛歵est1(test1涓哄垪)
聽聽聽聽聽聽聽聽聽聽聽聽聽 Column family锛歵est2
聽聽聽聽聽聽聽聽聽 濡備笂锛歵est1,test2 閮芥槸鍒楃皣 Column family 鐨勫垪
聽聽聽聽聽聽聽聽聽 *璁块棶鎺у埗銆佺鐩樺拰鍐呭瓨鐨勪娇鐢ㄧ粺璁¢兘鏄湪鍒楁棌灞傞潰杩涜鐨勩€偮犅犅犅犅?
聽聽聽 鏃堕棿鎴筹細HBase涓€氳繃row鍜宑olumns纭畾鐨勪负涓€涓瓨璐崟鍏冪О涓篶ell銆?
聽聽聽聽聽聽聽聽聽聽聽 姣忎釜 cell閮戒繚瀛樼潃鍚屼竴浠芥暟鎹殑澶氫釜鐗堟湰銆傜増鏈€氳繃鏃堕棿鎴虫潵绱㈠紩銆?
聽聽聽聽聽聽聽聽聽聽聽 鏃堕棿鎴崇殑绫诲瀷鏄?64浣嶆暣鍨嬨€傛椂闂存埑鍙互鐢県base(鍦ㄦ暟鎹啓鍏ユ椂鑷姩 )璧嬪€硷紝
聽聽聽聽聽聽聽聽聽聽聽 姝ゆ椂鏃堕棿鎴虫槸绮剧‘鍒版绉掔殑褰撳墠绯荤粺鏃堕棿銆傛椂闂存埑涔熷彲浠ョ敱瀹㈡埛鏄惧紡璧嬪€笺€?
聽聽聽聽聽聽聽聽聽聽聽 濡傛灉搴旂敤绋嬪簭瑕侀伩鍏嶆暟鎹増鏈啿绐侊紝灏卞繀椤昏嚜宸辩敓鎴愬叿鏈夊敮涓€鎬х殑鏃堕棿鎴炽€?
聽聽聽聽聽聽聽聽聽聽聽 姣忎釜 cell涓紝涓嶅悓鐗堟湰鐨勬暟鎹寜鐓ф椂闂村€掑簭鎺掑簭锛屽嵆鏈€鏂扮殑鏁版嵁鎺掑湪鏈€鍓嶉潰銆?
聽聽聽聽聽聽聽聽聽聽聽 褰撲綘鎻掑叆涓€涓暟鍊肩殑鏃跺€欙紝濡傛灉涓嶆墜宸ュ啓鏃堕棿鎴筹紝绯荤粺浼氳嚜鍔ㄧ敓鎴愪竴涓€傚綋浣犲湪hbase shell涓媠can鏌愪釜鍏蜂綋琛ㄧ殑鏃跺€欙紝鍙互鐪嬪埌涓€澶у爢鐨勬椂闂存埑聽聽聽聽
聽聽聽聽聽聽聽聽聽聽
4.浼樼己鐐?
聽聽 a.鍒楃殑鍙互鍔ㄦ€佸鍔狅紝骞朵笖鍒椾负绌哄氨涓嶅瓨鍌ㄦ暟鎹?鑺傜渷瀛樺偍绌洪棿.
聽聽 b.Hbase鑷姩鍒囧垎鏁版嵁锛屼娇寰楁暟鎹瓨鍌ㄨ嚜鍔ㄥ叿鏈夋按骞硈calability.
聽聽 c.Hbase鍙互鎻愪緵楂樺苟鍙戣鍐欐搷浣滅殑鏀寔
聽聽 d.涓嶈兘鏀寔鏉′欢鏌ヨ锛屽彧鏀寔鎸夌収Row key鏉ユ煡璇?