wiki:Hbase_Lab2

Version 2 (modified by shunfa, 11 years ago) (diff)

--

HBase 操作

0. 啟動HBase並確認所有服務都已啟動

  • 終端機
    ~$ jps
    17101 QuorumPeerMain
    19978 HRegionServer
    19807 HMaster
    14510 NameNode
    15136 TaskTracker
    20311 Jps
    14685 DataNode
    14873 SecondaryNameNode
    14958 JobTracker
    
  • 網頁瀏覽器
    http://localhost:60010
    

1. 進入HBase Shell

1-1 資料庫操作-列出資料庫 list

1-2 資料庫操作-新增資料庫 create

1-3 資料庫操作-新增紀錄 put

1-4 資料庫操作-列出資料庫內容 scan

1-5 資料庫操作-刪除資料庫 disable and drop

1-6 離開