ubuntu 16.04 hadoop完全分布式之HBASE搭建

HBASE是基于HDFS的一个大型nosql数据库,相当于谷歌的big table,和HIVE相比,他主要用于实时数据提取场景,获取数据应该很快

搭建

我的HBASE 是 1.3.5
hadoop 2.7.7

  1. 拷贝hdfs-site.xml core-site.xml zoo.conf到hbase/conf里面
  2. vi /etc/profile 添加HBASE的bin
  3. 修改hbase-env.sh:JDK位置,还有使用外部zookeeper
  4. 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>
  1. 设置hbase集群/conf/regionservers
hadoop11
hadoop12
hadoop13
  1. 复制HBASE到其他节点,并且用NTP对时
  2. 启动zookeeper
  3. 启动HDFS
  4. 在主节点执行start-hbase.sh

访问60010端口,看下web是否有响应
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值