伪分布式Hbase安装和配置
生活随笔
收集整理的這篇文章主要介紹了
伪分布式Hbase安装和配置
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
目錄
一、版本介紹
Centos6.5下Hadoop偽分布式安裝
二、安裝
1.上傳文件
2.解壓文件
三、配置環(huán)境變量
四、修改配置文件
1.配置hbase-env.sh
?2.配置hbase-site.xml
五、啟動(dòng)
一、版本介紹
Centos6.5下Hadoop偽分布式安裝
- 虛擬機(jī)軟件:Parallels Desktop10
- Hadoop各節(jié)點(diǎn)節(jié)點(diǎn)操作系統(tǒng):CentOS 6.5
- JDK版本:jdk1.8.0
- HBase版本:hbase-1.4.13
- 下載地址:http://archive.apache.org/dist/hbase/
??
二、安裝
1.上傳文件
本地導(dǎo)入虛擬機(jī)
2.解壓文件
tar -zxvf hbase-1.4.13-bin.tar.gz三、配置環(huán)境變量
[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狀態(tài)下:set nu顯示行號(hào)
配置27行和128行
27 export JAVA_HOME=/usr/soft/jdk 128 export HBASE_MANAGES_ZK=true?2.配置hbase-site.xml
查看主機(jī)名命令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是主機(jī)名 --><value>hdfs://hadoop:9000/hbase</value> </property> <property><name>hbase.cluster.distributed</name><value>true</value> </property><property><name>hbase.zookeeper.quorum</name> <!-- hadoop是主機(jī)名 --><value>hadoop</value> </property><property><name>hbase.master.maxclockskew</name><value>180000</value> </property></configuration>五、啟動(dòng)
[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?啟動(dòng)jps查看主機(jī)與從機(jī)進(jìn)程如果有則說(shuō)明配置成功?
下面我來(lái)訪問(wèn)一下網(wǎng)頁(yè)端口號(hào)16010
總結(jié)
以上是生活随笔為你收集整理的伪分布式Hbase安装和配置的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 【AtCoder Regular Con
- 下一篇: hdoj-3342-Legal or N