HBASE是基于HDFS的一个大型nosql数据库,相当于谷歌的big table,和HIVE相比,他主要用于实时数据提取场景,获取数据应该很快
搭建
我的HBASE 是 1.3.5
hadoop 2.7.7
- 拷贝hdfs-site.xml core-site.xml zoo.conf到hbase/conf里面
- vi /etc/profile 添加HBASE的bin
- 修改hbase-env.sh:JDK位置,还有使用外部zookeeper
- vim hbase-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
/**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<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.master.info.port</name>
<value>60010</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>hadoop11:2181,hadoop12:2181,hadoop13:2181</value>
</property>
</configuration>
- 设置hbase集群/conf/regionservers
hadoop11
hadoop12
hadoop13
- 复制HBASE到其他节点,并且用NTP对时
- 启动zookeeper
- 启动HDFS
- 在主节点执行start-hbase.sh
访问60010端口,看下web是否有响应