项目作者: sig003

项目描述 :
hbase standalone conf file && hbase standalone installation
高级语言: Shell
项目地址: git://github.com/sig003/hbase_standalone_conf.git
创建时间: 2021-08-11T02:00:45Z
项目社区:https://github.com/sig003/hbase_standalone_conf

开源协议:

下载


hbase standalone conf file

hbase 2.3.6 (2021.08. stable release)
https://www.apache.org/dyn/closer.lua/hbase/2.3.6/hbase-2.3.6-bin.tar.gz

1. hbase-env.sh

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

2. hbase-site.xml



hbase.cluster.distributed
false


hbase.tmp.dir
./tmp


hbase.unsafe.stream.capability.enforce
false


hbase.rootdir
file:///app/hbase-2.3.6/HBASE/hbase


hbase.zookeeper.property.dataDir
/app/hbase-2.3.6/HBASE/zookeeper

3. openJDK8

You need to install openJDK8.

4. hbase standalone installation

  1. //1. install openjdk
  2. $ apt install openjdk-8*
  3. //2. file download
  4. $ wget https://downloads.apache.org/hbase/2.3.6/hbase-2.3.6-bin.tar.gz
  5. //3. extraction
  6. $ tar xvzf hbase-2.3.6-bin.tar.gz
  7. $ mv hbase-2.3.6 hbase
  8. //4. setting java path
  9. $ vi hbase/conf/hbase-env.sh
  10. export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
  11. //5. setting hbase-site.xml
  12. $ vi hbase/conf/hbase-site.xml
  13. <configuration>
  14. <property>
  15. <name>hbase.cluster.distributed</name>
  16. <value>false</value>
  17. </property>
  18. <property>
  19. <name>hbase.tmp.dir</name>
  20. <value>./tmp</value>
  21. </property>
  22. <property>
  23. <name>hbase.unsafe.stream.capability.enforce</name>
  24. <value>false</value>
  25. </property>
  26. <property>
  27. <name>hbase.rootdir</name>
  28. <value>file:///app/hbase-2.3.6/HBASE/hbase</value>
  29. </property>
  30. <property>
  31. <name>hbase.zookeeper.property.dataDir</name>
  32. <value>/app/hbase-2.3.6/HBASE/zookeeper</value>
  33. </property>
  34. </configuration>
  35. //6. start a hbase daemon
  36. $ ./hbase/bin/start-hbase.sh
  37. //7. web UI
  38. http://IP::16030
  39. //8. shell
  40. $ ./hbase/bin/hbase shell

5. Reference

https://sig03.medium.com/hbase-standalone-설치-후-데몬이-죽는-문제-해결-5007c49159fc

https://sig03.medium.com/hbase-도입-검토-e165fd439f5b