[[PageOutline]] = HBase 操作 = == 0. 啟動HBase並確認所有服務都已啟動 == * 終端機 {{{ ~$ jps 17101 QuorumPeerMain 19978 HRegionServer 19807 HMaster 14510 NameNode 15136 TaskTracker 20311 Jps 14685 DataNode 14873 SecondaryNameNode 14958 JobTracker }}} * 網頁瀏覽器 {{{ #!text http://localhost:60010 }}} == 1. 進入HBase Shell == {{{ shunfa@shunfa-vmmVBox:/opt/hbase-0.90.6$ bin/hbase shell HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 0.90.6, r1295128, Wed Feb 29 14:29:21 UTC 2012 hbase(main):001:0> }}} * 試試help指令 {{{ hbase(main):001:0> help }}} === 1-1 資料庫操作-列出資料庫 list === === 1-2 資料庫操作-新增資料庫 create === === 1-3 資料庫操作-新增紀錄 put === === 1-4 資料庫操作-列出資料庫內容 scan === === 1-5 資料庫操作-刪除資料庫 disable and drop === === 1-6 離開 ===