Changes between Version 2 and Version 3 of HBase


Ignore:
Timestamp:
Jul 3, 2008, 4:13:07 PM (16 years ago)
Author:
sunny
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HBase

    v2 v3  
     1[[PageOutline]]
    12
    23== '''''HBase''''' ==
     
    191192</configuration>
    192193}}}
     194== '''''常見問題''''' ==
     195 1. HBase資料庫系統在執行關閉伺服器指令後,再重新啟動時裡面的資料表都會遺失? [[BR]]
     196   Ans: 在hbase/conf目錄裡有一個預設的組態檔hbase-default.xml,裡面的hbase.rootdir屬性預設值是"file:///tmp/hbase-${user.home}/hbase", 這表示hbase的檔案系統預設是掛載在使用本機的/tmp目錄底下,如果是沒有特別去備份/tmp目錄,或是把/tmp掛載到ram disc裡的情況下,裡面的資料庫資料會在重新啟動作業系統後被作業系統自動清空,因此,只要把hbase.rootdir指定到其他可以永續存放的磁碟空間,就可以解決資料表存放的問題。hbase.rootdir可以直接設定在hbase-default.xml裡或是hbase-site.xml,hbase系統讀取設定檔的優先權順序是hbase-site.xml高於hbase-default.xml,如果想保留原本的預設值,一般是建議直接放到hbase-site.xml就可以了。屬性內容如下:
     197{{{
     198value可以自由設定路徑,description非必填,name則是固定的屬性名稱
     199<property>
     200    <name>hbase.rootdir</name>
     201    <value>file:///${user.home}/hbase/dbstored</value>
     202     <description>The directory shared by region servers.
     203      Should be fully-qualified to include the filesystem to use.
     204     </description>
     205  </property>
     206}}}
     207
     208== '''''研究團隊''''' ==
     209 * 此網頁內容為國網中心雲端技術研究小組之雲端資料庫(Cloud DB)研究人員之共同研究心得分享,內容如有疏誤請多包含。
     210 * 技術顧問: 王耀聰
     211 * 研究人員: 陳惠珊,陳威宇,王心怡
     212 * 編輯人員: 陳惠珊,王心怡