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技術手冊
482
|
第十二章
共存叢集
對於測試目的,在兩個分開的實例,但在同一台實體主機上,去執行 HBase 是很有用
的。例如,當你想要複製雛型到開發主機上,這是很有幫助的。
建議也完全沒有測試過,在分散式叢集上運行多個 HBase 實例,包括
它的背景服務。沒有一個 HBase 的程序是被設計在產品中共用相同的伺
服器,在它的設計上也沒有任何一部分是這樣做的。特別提出警告!
假設你已設定好一個 HBase 的本地端安裝,如第 2 章所述,並且配置它在獨立模式
standalone mode),你可以先製作一份組態目錄的副本,如下所示:
$
cd
$
HBASE_HOME
$
cp -pR conf conf.2
下一步是要編輯在新的
conf.2
目錄中的
hbase-env.sh
檔案:
# Where log files are stored. $HBASE_HOME/logs by default.
export HBASE_LOG_DIR=${HBASE_HOME}/
logs.2
# A string representing this instance of hbase. $USER by default.
export HBASE_IDENT_STRING=$
{USER}.2
在本地端檔案名稱,必須要沒有重疊。最後,需要調整
hbase-site.xml
檔案:
<configuration>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value> ...
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