If HBase is installed, configured and basic used
Editor to share with you about the installation, configuration and basic use of HBase. I hope you will get something after reading this article. Let's discuss it together.
9. HBase
This topic describes the installation, configuration, and basic use of HBase.
HBase basic Information
Official website: http://hbase.apache.org/ official document: http://hbase.apache.org/book.html9.1. Environment preparation # switch to the workspace cd / opt/workspaces# to create the HBase log directory mkdir logs/hbase9.2. Install wget http://mirrors.cnnic.cn/apache/hbase/1.2.1/hbase-1.2.1-bin.tar.gztar-zxf hbase-1.2.1-bin.tar.gzrm-rf hbase-1.2.1-bin.tar.gzmv hbase-1.2.1. / frameworks/hbase9.3. Configuration (fully distributed)
Vi. / frameworks/hbase/conf/hbase-env.sh
Export JAVA_HOME=/opt/env/javaexport HBASE_LOG_DIR=/opt/workspaces/logs/hbaseexport HBASE_MANAGES_ZK=false
Vi. / frameworks/hbase/conf/hbase-site.xml
Hbase.rootdir hdfs://bd:9000/hbase hbase.cluster.distributed true hbase.zookeeper.property.clientPort 2181 hbase.zookeeper.quorum bd hbase.zookeeper.property.dataDir / opt/workspaces/data/zookeeper dfs.support.append true9.4. Start. / frameworks/hbase/bin/start-hbase.sh9.5. Test. / frameworks/hbase/bin/hbase shellcreate 'test',' cf'list 'test'put' test', 'row1',' cf:a', 'value1'put' test', 'row2',' cf:b', 'value2'put' test', 'row3',' cf:c', 'value3'scan' test'get 'test',' row1'disable 'test'enable' test'drop 'test' has finished reading this article I believe you have a certain understanding of "HBase installation, configuration and basic use". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!