Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

If HBase is installed, configured and basic used

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report