linux hbase-2.0.2安装

首先安装jdk,然后安装hadoop,因为hbase依赖大数据处理,

1、下载hbase-2.0.2解压

tar -zxvf hbase-2.0.2-bin.tar.gz 

2、修改文件:

[root@hbase-master conf]# vi /data/hbase-2.0.2/conf/hbase-site.xml 

在文件中添加:

<configuration>

<property>
        <name>hbase.rootdir</name>
        <value>hdfs://192.168.252.19:9000/hbase</value>
    </property>
    <property>
        <name>hbase.cluster.distributed</name>
        <value>true</value>
    </property>
    <property>
        <name>hbase.zookeeper.quorum</name>
        <value>192.168.252.15</value>
    </property>
    <property>
        <name>hbase.temp.dir</name>
        <value>/opt/hbase/data/temp</value>
    </property>
    <property>
        <name>hbase.zookeeper.property.dataDir</name>
        <value></value>
    </property>
         <property>
           <name>hbase.zookeeper.property.clientPort</name>
           <value>2181</value>
         </property>
    <property>
        <name>hbase.master.info.port</name>
        <value>60010</value>
    </property>
    <property>
        <name>hbase.unsafe.stream.capability.enforce</name>
        <value>false</value>
    </property>

</configuration>

3、修改文件:

[root@hbase-master conf]# vi /data/hbase-2.0.2/conf/regionservers 
192.168.252.19

4、增加jdk

[root@hbase-master conf]# vi /data/hbase-2.0.2/conf/hbase-env.sh
#!/usr/bin/env bash
#
#/**
# * 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
# *
export JAVA_HOME=/usr/local/java/jdk1.8.0_60

5、启动hbase:

[root@hbase-master bin]# ./start-hbase.sh 
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data/hbase-2.0.2/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/data/hadoop-3.0.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data/hbase-2.0.2/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/data/hadoop-3.0.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
192.168.252.15: bash: /data/hbase-2.0.2/bin/hbase-daemon.sh: 没有那个文件或目录
running master, logging to /data/hbase-2.0.2/bin/../logs/hbase-root-master-hbase-master.out
192.168.252.19: running regionserver, logging to /data/hbase-2.0.2/bin/../logs/hbase-root-regionserver-hbase-master.out

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值