一、介绍
hbase是什么,Hbase是一个分布式,可扩展,支持海量数据存储的noSQL数据库
二、下载hbase
https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/2.5.6/
三、配置hbase环境变量
三、修改hbase配置文件
在hbase-env.cmd添加如下配置
@rem JDK6 on Windows has a known bug for IPv6, use preferIPv4Stack unless JDK7.
@rem @rem See TestIPv6NIOServerSocketChannel.
set JAVA_HOME=D:/Java/jdk1.8.0_311
修改hbase-site.xml配置
<property>
<name>hbase.root.dir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.tmp.dir</name>
<value>hdfs://localhost:9000/hbase/tmp</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>D:/bigdata/hbase-2.5.5-hadoop3/data/tmp/zookeeper</value>
</property>
<property>
<name>hbase.master.info.port</name>
<value>16010</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>false</value>
</property>
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
四、启动hadoop
五、启动hbase
进入hbase里面的bin中执行start-hbase.cmd
start-hbase.cmd
D:\bigdata\hbase-2.5.5-hadoop3\bin>start-hbase.cmd
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/bigdata/hbase-2.5.5-hadoop3/lib/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/bigdata/hadoop/share/hadoop/common/lib/slf4j-reload4j-1.7.36.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.apache.logging.slf4j.Log4jLoggerFactory]
在浏览器中输入地址,http://localhost:16010/
这里就可以看到启动成功了。