Linux consolidation record (7) HBase installation

Source: Internet
Author: User
Tags xsl zookeeper

After the zookeeper is installed and started successfully, the next step is to install HBase

#下载hbasewget http://mirror.bit.edu.cn/apache/hbase/1.3.1/hbase-1.3.1-bin.tar.gz
[Email protected] home]# lltotal 103248drwxr-xr-x.  8 root         root               191 Sep  5 22:31 eclipsedrwxr-xr-x        20415          101       195 Sep  5 21:29 Hadoop-2.7.4-rw-r--r--.  1 root         root         105718722 June 18:41 hbase-1.3.1-bin.tar.gzdrwxr-xr-x.  8          143       255 Jul 13:11 jdk1.8.0drwx------.  3 Xiaochangwei Xiaochangwei        Sep  5 01:01 xiaochangweidrwxr-xr-x. 1001 1001      4096 Sep  
#解压到当前的home目录tar-ZXVF hbase-1.3.1-bin.tar.gz
#添加环境变量vi/etc/profile# content is shown in red, and the other is the previously configured export Java_home=/home/jdk1.8.0export classpath=.: $JAVA _home/jre/lib/ Rt.jar: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jarexport path= $PATH: $JAVA _home/bin Export Java_homeexport Pathexport classpathexport hadoop_home=/home/hadoop-2.7.4export path= $PATH: $HADOOP _home/bin: $HADOOP _home/ Sbinexport hadoop_conf_dir= $HADOOP _home/etc/hadoopexport yarn_conf_dir= $HADOOP _home/etc/hadoopexport HBASE=/ Home/hbase-1.3.1export path= $HBASE/bin: $PATH
#使配置立即生效并验证 [[email protected] hbase-1.3.1]# source/etc/profile[[email protected] hbase-1.3.1]# hbaseusage:hbase [ <Options>]<Command>[<args>]options:--config DIR Configuration direction to use. Default:./conf--hosts hosts Override the list in ' regionservers ' file--auth-as-server authenticate to ZooKeeper us ing servers configurationcommands:some commands take arguments.  Pass no args or-h for usage. Shell run the HBase Shell hbck run the HBase ' fsck ' tool snapshot tool for managing snapshot s snapshotinfo Tool for dumping snapshot information Wal write-ahead-log Analyzer hfile Store File Analyzer Zkcli run the ZooKeeper shell upgrade upgrade HBase Master Run an hbase hmaste R node Regionserver run an HBase hregionserver node zookeeper run a zookeeper server rest run an HB           ASE REST Server Thrift Run the HBase Thrift Server thrift2 Run the hbase Thrift2 server clean Run the hbase clean up script classpath dump HBase classpath MAPREDCP Dump classpath entries reqUired by MapReduce PE run performanceevaluation ltt run Loadtesttool Canary run the C Anary Tool version Print the version CLASSNAME Run the class named classname[[email protected] hbase-  1.3.1]#
#修改hbase的环境变量和jdk环境变量vi/home/hbase-1.3.1/conf/hbase-env.shexport Java_home=/home/jdk1.8.0/export Hbase_classpath =/home/hbase-1.3.1/conf
#配置vi/home/hbase-1.3.1/conf/hbase-site.xml# modified to<?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 * under the Apache License, Version 2.0 (The * "License");  You are not a use of this file except in compliance * with the License. Obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * unless required by applicab Le law or agreed into writing, software * Distributed under the License is distributed on a "as is" BASIS, * without WAR Ranties 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://master:9000/hbase</value>    </ Property>    < Property>        <name>hbase.cluster.distributed</name>        <value>True</value>    </ Property>    < Property>        <name>Hbase.zookeeper.quorum</name>        <value>Master,slave1,slave2</value>    </ Property>    < Property>        <name>Hbase.tmp.dir</name>        <value>/tmp/hbase</value>    </ Property>    < Property>        <name>Hbase.master</name>        <value>hdfs://master:60000</value>    </ Property>    < Property>        <name>Hbase.zookeeper.property.dataDir</name>        <value>/tmp/zookeeper</value>    </ Property></Configuration>
#配置从节点
Vi/home/hbase-1.3.1/conf/regionservers

#去掉里面的localhost, modified to
Slave1
Slave2


#分别拷贝到slave节点scp-R/home/hbase-1.3.1/slave1:/home/scp-r/home/hbase-1.3.1/slave2:/home/

Next start hadoop-"zookeeper (each of the points to start separately)-" HBase

Linux consolidation record (7) HBase installation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.