HBASE下载地址:https://hbase.apache.org/downloads.html
解压,注意要下载bin文件,不能是src文件
修改 /conf下的 hbase-env.sh文件,增加JAVA_HOME配置
修改/conf下的 hbase-site.xml 文件,增加一下内容,value为HBASE加压目录
<property>
<name>hbase.rootdir</name>
<value>file:///opt/hbase/hbase-2.2.0</value>
<description>The directory shared byregion servers.</description>
</property>
启动HBASE,/bin目录下 start-hbase.sh启动
shell操作hbase
趟坑记录:
hbase shell 命令行报错
查看日志:
发现2181端口占用了,zk端口为2182
解决方式:
修改hbase的hbase-site.xml文件,制定zk端口为8182
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2182</value>
</property>