Ubuntu下配置Hadop(伪分布式)(1)-hbase安装与配置

下载安装hbase

1
2
$ tar xzvf hbase-0.96.1-hadoop2-bin.tar.gz
$ mv hbase-0.96.1-hadoop2 /usr/hbase

配置

conf/hbase-env.sh

1
export JAVA_HOME=yourJavaHomePath

hbase-site.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>yourDataDir</value>
</property>
</configuration>

启动

1
2
3
$ start-dfs.sh
$ start-hbase.sh
$ jps

Web查看状态

查看Master Status: http://localhost:60010/master-status

查看Region Server Status: http://localhost:60030/rs-status