mac下virtualbox 安装 zookeeper, hadoop 2.6, hbase 1.0 (安装hbase)

1 把hadoop的 hdfs-site.xml 和 core-site.xml 放到 hbase/conf下

2 修改 hbase-env.sh
export JAVA_HOME=/usr/local/java   你的jdk 位置
export HBASE_MANAGES_ZK=false

3 修改 hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://ns1/hbase</value>
</property>

<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>

<property>
<name>hbase.zookeeper.quorum</name>
<value>vm1:2181,vm2:2181</value>
</property>
</configuration>

4 修改 regionservers
vm2

拷贝hbase到其他节点
scp -r /usr/local/hbase vm1:/usr/local/

start-hbase.sh
hbase shell 后可做基本测试
5

根据每台机器的配置不同,jps 的结果不一样,
比如这里只有 HMaster 却没有 HRegionServer
5

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s