Skip to Content
HBASE技術手冊
book

HBASE技術手冊

by Lars George
December 2012
Intermediate to advanced
572 pages
13h 8m
Chinese
GoTop Information, Inc.
Content preview from HBASE技術手冊
安裝
|
65
hbase-env.sh
檔案中,增加屬性將
HADOOP_CONF_DIR
指向
HBASE_CLASSPATH
境變數。
增加
hdfs-site.xml
檔案 (
hadoop-site.xml
) 的複本到
${HBASE_HOME}/conf
錄下或使用更適當地符號連結。
將它們直接增加到
hbase-site.xml
檔案中。
有一個範例,像是 HDFS 客戶端屬性
dfs.replication
。如果希望 HDFS 中的資料
會有 5 份複本的話,尤於 HBase 預設會產生 3 份檔案,除非你執行上述的一種動
作,使組態可用於 HBase 上。
當你增加 Hadoop 組態檔案到 HBase 時,它們的優先權始終都是最低的。換句話
說,任何在 HBase 相關組態檔案中的屬性,也就是預設和網站檔案,會比包含相
同名稱屬性的 Hadoop 組態檔優先處理。這允許你在 HBase 組態檔中覆蓋 Hadoop
的屬性。
hbase-env.sh
你會在這個檔中設定 HBase 環境變數,範例中包括了當 HBase 背景服務啟動時傳到
JVM 的參數、Java 堆積大小和垃圾收集器的配置。你也可以設定 HBase 組態參數、日
誌位置、優先序、SSH 參數以及
pid
檔案位置等等。開啟
conf/hbase-env.sh
檔案並仔細
閱讀其內容,每個參數都被寫在文件上,在這裡增加自己的環境變數,以便在 HBase
務進程啟動時可讀取。
如有修改這份檔案的話,需要將叢集重新啟動,才能使 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
SQL经典实例(第2版)

SQL经典实例(第2版)

Anthony Molinaro, Robert de Graaf
機器學習|工作現場的評估、導入與實作

機器學習|工作現場的評估、導入與實作

有賀康顕, 中山心太, 西林孝

Publisher Resources

ISBN: 9789862765968