Changes between Version 3 and Version 4 of Hbase_Lab2
- Timestamp:
- Dec 11, 2012, 4:11:39 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hbase_Lab2
v3 v4 37 37 38 38 === 1-1 資料庫操作-列出資料庫 list === 39 {{{ 40 hbase(main):002:0> list 41 TABLE 42 0 row(s) in 0.7890 seconds 43 }}} 44 39 45 === 1-2 資料庫操作-新增資料庫 create === 46 {{{ 47 hbase(main):003:0> create 'test', 'data' 48 0 row(s) in 1.4780 seconds 49 }}} 50 51 * 驗證 52 {{{ 53 hbase(main):004:0> list 54 TABLE 55 test 56 1 row(s) in 0.0130 seconds 57 }}} 40 58 === 1-3 資料庫操作-新增紀錄 put === 59 {{{ 60 hbase(main):005:0> put 'test', 'row1', 'data:1', 'value1' 61 0 row(s) in 0.1180 seconds 62 63 hbase(main):007:0> put 'test', 'row2', 'data:2', 'value2' 64 0 row(s) in 0.0120 seconds 65 66 hbase(main):008:0> put 'test', 'row3', 'data:3', 'value3' 67 0 row(s) in 0.0090 seconds 68 }}} 41 69 === 1-4 資料庫操作-列出資料庫內容 scan === 70 {{{ 71 hbase(main):009:0> scan 'test' 72 ROW COLUMN+CELL 73 row1 column=data:1, timestamp=1355213278489, value=value1 74 row2 column=data:2, timestamp=1355213303215, value=value2 75 row3 column=data:3, timestamp=1355213310664, value=value3 76 3 row(s) in 0.0580 seconds 77 }}} 78 42 79 === 1-5 資料庫操作-刪除資料庫 disable and drop === 80 * disable 81 {{{ 82 hbase(main):010:0> disable 'test' 83 0 row(s) in 2.1270 seconds 84 }}} 85 86 * drop 87 {{{ 88 hbase(main):011:0> drop 'test' 89 0 row(s) in 1.3310 seconds 90 }}} 91 92 * 確認已刪除"test" 93 {{{ 94 hbase(main):012:0> list 95 TABLE 96 0 row(s) in 0.0110 seconds 97 }}} 98 43 99 === 1-6 離開 === 100 {{{ 101 hbase(main):013:0> exit 102 shunfa@shunfa-vmmVBox:/opt/hbase-0.90.6$ 103 }}}