伪分布式Hbase安装和配置
版本介绍Centos6.5下Hadoop伪分布式安装虚拟机软件:Parallels Desktop10Hadoop各节点节点操作系统:CentOS 6.5JDK版本:jdk1.8.0HBase版本:hbase-1.4.13下载地址:http://archive.apache.org/dist/hbase/二、第一步:安装软件...
·
目录
一、版本介绍
Centos6.5下Hadoop伪分布式安装
- 虚拟机软件:Parallels Desktop10
- Hadoop各节点节点操作系统:CentOS 6.5
- JDK版本:jdk1.8.0
- HBase版本:hbase-1.4.13
- 下载地址:http://archive.apache.org/dist/hbase/
二、安装
1.上传文件
本地导入虚拟机
2.解压文件
tar -zxvf hbase-1.4.13-bin.tar.gz
三、配置环境变量
[root@hadoop conf]# vim /etc/profile.d/hbase.sh
HBASE_HOME=/usr/soft/hbase
PATH=$PATH:$HBASE_HOME/bin
export HBASE_HOME PATH
[root@hadoop conf]# source /etc/profile.d/hbase.sh
四、修改配置文件
1.配置hbase-env.sh
在conf的目录下配置,在esc状态下:set nu显示行号
配置27行和128行
27 export JAVA_HOME=/usr/soft/jdk
128 export HBASE_MANAGES_ZK=true
2.配置hbase-site.xml
查看主机名命令hostname
[root@hadoop conf]# cat 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>
<!-- hadoop是主机名 -->
<value>hdfs://hadoop:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<!-- hadoop是主机名 -->
<value>hadoop</value>
</property>
<property>
<name>hbase.master.maxclockskew</name>
<value>180000</value>
</property>
</configuration>
五、启动
[root@hadoop ~]# start-hbase.sh
hadoop: zookeeper running as process 51429. Stop it first.
master running as process 51519. Stop it first.
: regionserver running as process 51597. Stop it first.
[root@hadoop ~]# jps
52256 Jps
15316 ResourceManager
51429 HQuorumPeer
14998 DataNode
15416 NodeManager
14873 NameNode
15162 SecondaryNameNode
51597 HRegionServer
51519 HMaster
启动jps查看主机与从机进程如果有则说明配置成功
下面我来访问一下网页端口号16010
更多推荐
所有评论(0)