当前位置: 首页 > news >正文

海淀区建设委员会官方网站巩义网络推广

海淀区建设委员会官方网站,巩义网络推广,网wordpress站底部图片悬浮,如何给网站做seo文章目录 Hbase概念1.安装Hbase1.jdk的配置2.安装hbase 2.启动和操作1.启动服务2 **web-ui访问地址:http://node01:16010/master-status** 3.简单的操作1.连接 HBase2.帮助命令3.创建一张表 create a table4.使用查看表是否存在5.describe 查看表描述6.put命令插入数据到表7. s…

文章目录

  • Hbase概念
  • 1.安装Hbase
    • 1.jdk的配置
    • 2.安装hbase
  • 2.启动和操作
    • 1.启动服务
    • 2 **web-ui访问地址:`http://node01:16010/master-status`**
  • 3.简单的操作
    • 1.连接 HBase
    • 2.帮助命令
    • 3.创建一张表 create a table
    • 4.使用查看表是否存在
    • 5.describe 查看表描述
    • 6.put命令插入数据到表
    • 7. scan 查看所有的数据
    • 8.get获取单行数据
    • 9.删除表需要先禁用(disable)表再删除(drop)
    • 10.退出hbase shell
    • 11.停止hbase

Hbase概念

HBase是一个分布式、面向列的开源数据库,其基于Hadoop的分布式文件系统(HDFS)进行存储。它既具有分布式、可扩展、高可靠性等优点,也具备NoSQL、schema-free、实时访问等特性。HBase遵循Google BigTable的计算模型,可以用于存储非常大的数据集,适用于不断积累的数据,提供高效地实时读写访问。HBase作为Hadoop生态系统中的一个重要组成部分,可与Hadoop及其它组件如Hive、Pig、Storm等相互配合,构建具有高性能、可靠性和扩展性的大数据处理平台。

1.安装Hbase

1.jdk的配置

在这里不在赘述。

2.安装hbase

解压安装包

$ tar xzvf hbase-2.5.1-bin.tar.gz
$ cd hbase-2.4.0/

配置HBASE_HOME环境变量

vi /etc/profile
export HBASE_HOME=/opt/bigdata/hbase-2.5.1
export PATH=$PATH:$HBASE_HOME/bin
source /etc/profile

修改hbase-env.sh
最好使用jdk1.8,配置jdk8的路径

export JAVA_HOME=/usr/jdk64/jdk1.8.0_112

修改hbase-site.xml
默认不用修改。

2.启动和操作

1.启动服务

bin/start-hbase.sh

启动成功:

[root@node01 conf]# start-hbase.sh
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/bigdata/hadoop-2.6.5/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/bigdata/hbase-2.5.1/lib/client-facing-thirdparty/log4j-slf4j-impl-2.17.2.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.slf4j.impl.Log4jLoggerFactory]
running master, logging to /opt/bigdata/hbase-2.5.1/logs/hbase-root-master-node01.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/bigdata/hadoop-2.6.5/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/bigdata/hbase-2.5.1/lib/client-facing-thirdparty/log4j-slf4j-impl-2.17.2.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.slf4j.impl.Log4jLoggerFactory]
2023-04-16 07:03:20,996 INFO  [main] master.HMaster (HMaster.java:main(3289)) - STARTING service HMaster
2023-04-16 07:03:21,001 INFO  [main] util.VersionInfo (VersionInfo.java:logVersion(112)) - HBase 2.5.1
2023-04-16 07:03:21,001 INFO  [main] util.VersionInfo (VersionInfo.java:logVersion(112)) - Source code repository git://buildbox.localdomain/home/apurtell/tmp/RM/hbase revision=894ac15342ae9ac1e0d7c827c00fda4b83627758
2023-04-16 07:03:21,001 INFO  [main] util.VersionInfo (VersionInfo.java:logVersion(112)) - Compiled by apurtell on Mon Oct 17 15:41:08 PDT 2022
2023-04-16 07:03:21,001 INFO  [main] util.VersionInfo (VersionInfo.java:logVersion(112)) - From source with checksum 57c1d2c9c03f18d35860e6733447968d1711dae96b0b7d35b2d1e029a5d91423cf65a6063cfbe3b736907b7b20fb94d82a443b65982f4c973a72fb71cd7f2e47

2 web-ui访问地址:http://node01:16010/master-status

在这里插入图片描述

3.简单的操作

1.连接 HBase

hbase shell

启动报错

  • 错误1
    版本不兼容 需要换版本
 hbase shell
LoadError: load error: irb/completion -- java.lang.IncompatibleClassChangeError: Implementing classrequire at org/jruby/RubyKernel.java:974require at uri:classloader:/METAINF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54<main> at classpath:/jar-bootstrap.rb:42
  • 错误2
[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected

解决方法

#hadoop目录下存在老版本jline:
cd $HADOOP_HOME/share/hadoop/yarn/lib
rm -f jline-0.9.94.jar

2.帮助命令

hbase(main):030:0> help 

常用命令


#命令组 COMMAND GROUPS:
Group name: general
Commands: processlist, status, table_help, version, whoami
# ddl表定义语言  Group name: ddlCommands: alter, alter_async, alter_status, create, describe, disable, disable_all, drop, drop_all, enable, enable_all, exists, get_table, is_disabled, is_enabled, list, list_regions, locate_region, show_filters
#数据库 Group name: namespaceCommands: alter_namespace, create_namespace, describe_namespace, drop_namespace, list_namespace, list_namespace_tables#操作语言 Group name: dmlCommands: append, count, delete, deleteall, get, get_counter, get_splits, incr, put, #插入数据scan, #查询truncate #删除表数据

3.创建一张表 create a table

hbase(main):009:0* create 'user','cf'
Created table user
Took 0.7635 seconds                                                                                                                                                                                                    
=> Hbase::Table - user

4.使用查看表是否存在

hbase(main):010:0> list 'user'
TABLE                                                                                                                                                                                                                  
user                                                                                                                                                                                                                   
1 row(s)
Took 0.0328 seconds                                                                                                                                                                                                    
=> ["user"]

5.describe 查看表描述

hbase(main):012:0> describe 'user'
Table user is ENABLED                                                                                                                                                                                                  
user                                                                                                                                                                                                                   
COLUMN FAMILIES DESCRIPTION                                                                                                                                                                                            
{NAME => 'cf', VERSIONS => '1', EVICT_BLOCKS_ON_CLOSE => 'false', NEW_VERSION_BEHAVIOR => 'false', KEEP_DELETED_CELLS => 'FALSE', CACHE_DATA_ON_WRITE => 'false', DATA_BLOCK_ENCODING => 'NONE', TTL => 'FOREVER', MIN_
VERSIONS => '0', REPLICATION_SCOPE => '0', BLOOMFILTER => 'ROW', CACHE_INDEX_ON_WRITE => 'false', IN_MEMORY => 'false', CACHE_BLOOMS_ON_WRITE => 'false', PREFETCH_BLOCKS_ON_OPEN => 'false', COMPRESSION => 'NONE', BL
OCKCACHE => 'true', BLOCKSIZE => '65536'}                                                                                                                                                                              
1 row(s)
Took 0.1756 seconds 

6.put命令插入数据到表

hbase(main):013:0> put 'user','1','cf:username','elite'
Took 0.1000 seconds                                                             
hbase(main):014:0> put 'user','1','cf:age','22'
Took 0.0052 seconds                                                             
hbase(main):015:0> put 'user','1','cf:address','xxpro'
Took 0.0047 seconds 

7. scan 查看所有的数据

One of the ways to get data from HBase is to scan. Use the scan command to scan the table for data. You can limit your scan, but for now, all data is fetched.

hbase(main):016:0> scan 'user'
ROW                   COLUMN+CELL                                               1                    column=cf:address, timestamp=1681776414492, value=xxpro   1                    column=cf:age, timestamp=1681776404658, value=22          1                    column=cf:username, timestamp=1681776395675, value=elite  

8.get获取单行数据

hbase(main):024:0> scan 'user'
ROW                       COLUMN+CELL                                                             1                        column=cf:address, timestamp=1681776414492, value=xxpro                 1                        column=cf:age, timestamp=1681776404658, value=22                        1                        column=cf:username, timestamp=1681776540360, value=elite2               2                        column=cf:address, timestamp=1681776520152, value=xx2pro                2                        column=cf:age, timestamp=1681776533412, value=24                        2                        column=cf:username, timestamp=1681776546625, value=elite2               
2 row(s)
Took 0.0144 seconds                                                                               
hbase(main):025:0> get 'user','2'
COLUMN                    CELL                                                                    cf:address               timestamp=1681776520152, value=xx2pro                                   cf:age                   timestamp=1681776533412, value=24                                       cf:username              timestamp=1681776546625, value=elite2                                   
1 row(s)
Took 0.0069 seconds                                             

9.删除表需要先禁用(disable)表再删除(drop)

If you want to delete a table or change its settings, as well as in some other situations, you need to disable the table first, using the disable command. You can re-enable it using the enable command.

#创建表
hbase(main):031:0> create 'test','cf'
Created table test
Took 0.7353 seconds                                                                               
=> Hbase::Table - test
#看表描述是enabled状态
hbase(main):032:0> desc 'test'
Table test is ENABLED                                                                             
test                                                                                              
COLUMN FAMILIES DESCRIPTION                                                                       
{NAME => 'cf', VERSIONS => '1', EVICT_BLOCKS_ON_CLOSE => 'false', NEW_VERSION_BEHAVIOR => 'false',KEEP_DELETED_CELLS => 'FALSE', CACHE_DATA_ON_WRITE => 'false', DATA_BLOCK_ENCODING => 'NONE', TTL=> 'FOREVER', MIN_VERSIONS => '0', REPLICATION_SCOPE => '0', BLOOMFILTER => 'ROW', CACHE_INDEX_ON
_WRITE => 'false', IN_MEMORY => 'false', CACHE_BLOOMS_ON_WRITE => 'false', PREFETCH_BLOCKS_ON_OPEN=> 'false', COMPRESSION => 'NONE', BLOCKCACHE => 'true', BLOCKSIZE => '65536'}                   
1 row(s)
Took 0.0253 seconds 
# 直接删除表提示  Table test is enabled. Disable it first.                                                                            
hbase(main):033:0> drop 'test'ERROR: Table test is enabled. Disable it first.Drop the named table. Table must first be disabled:hbase> drop 't1'hbase> drop 'ns1:t1'Took 0.0192 seconds     
#禁用表                                                                          
hbase(main):035:0> disable 'test'
Took 0.4833 seconds         
# 删除表                                                                      
hbase(main):036:0> drop 'test'
Took 0.2657 seconds  

10.退出hbase shell

quit

11.停止hbase

$ ./bin/stop-hbase.sh

文章转载自:
http://cordwain.mrfr.cn
http://bakeshop.mrfr.cn
http://reinform.mrfr.cn
http://shah.mrfr.cn
http://nephron.mrfr.cn
http://suffosion.mrfr.cn
http://nabobship.mrfr.cn
http://exode.mrfr.cn
http://fike.mrfr.cn
http://kasolite.mrfr.cn
http://kurrajong.mrfr.cn
http://atomics.mrfr.cn
http://fso.mrfr.cn
http://magnetopause.mrfr.cn
http://teleplay.mrfr.cn
http://kiushu.mrfr.cn
http://slavonic.mrfr.cn
http://diminishable.mrfr.cn
http://brownian.mrfr.cn
http://nonnuclear.mrfr.cn
http://sandhill.mrfr.cn
http://lodicule.mrfr.cn
http://taximeter.mrfr.cn
http://proleptic.mrfr.cn
http://composedness.mrfr.cn
http://palankeen.mrfr.cn
http://carrucate.mrfr.cn
http://mdt.mrfr.cn
http://calvarian.mrfr.cn
http://stram.mrfr.cn
http://timeliness.mrfr.cn
http://gemstone.mrfr.cn
http://perfume.mrfr.cn
http://autecism.mrfr.cn
http://esbat.mrfr.cn
http://jefe.mrfr.cn
http://poussin.mrfr.cn
http://orthodromic.mrfr.cn
http://landsting.mrfr.cn
http://embowel.mrfr.cn
http://jordan.mrfr.cn
http://trapeziform.mrfr.cn
http://norge.mrfr.cn
http://midshipmite.mrfr.cn
http://steal.mrfr.cn
http://lwop.mrfr.cn
http://heptaglot.mrfr.cn
http://winifred.mrfr.cn
http://typo.mrfr.cn
http://pecten.mrfr.cn
http://zooflagellate.mrfr.cn
http://amphora.mrfr.cn
http://popish.mrfr.cn
http://sentential.mrfr.cn
http://debonair.mrfr.cn
http://plowtail.mrfr.cn
http://packager.mrfr.cn
http://beijing.mrfr.cn
http://shotmaking.mrfr.cn
http://reticulum.mrfr.cn
http://notarise.mrfr.cn
http://gangly.mrfr.cn
http://candlemas.mrfr.cn
http://plimsolls.mrfr.cn
http://opiumism.mrfr.cn
http://endocast.mrfr.cn
http://bregma.mrfr.cn
http://endolithic.mrfr.cn
http://clodpate.mrfr.cn
http://animalize.mrfr.cn
http://currently.mrfr.cn
http://retrobulbar.mrfr.cn
http://harmfulness.mrfr.cn
http://mitreblock.mrfr.cn
http://vagotropic.mrfr.cn
http://divorcee.mrfr.cn
http://humane.mrfr.cn
http://bp.mrfr.cn
http://chagatai.mrfr.cn
http://haze.mrfr.cn
http://telesis.mrfr.cn
http://triunitarian.mrfr.cn
http://applicatory.mrfr.cn
http://dissolvingly.mrfr.cn
http://eeling.mrfr.cn
http://madly.mrfr.cn
http://noir.mrfr.cn
http://implosion.mrfr.cn
http://frescoist.mrfr.cn
http://spoliation.mrfr.cn
http://pugree.mrfr.cn
http://prevail.mrfr.cn
http://examinatorial.mrfr.cn
http://trihybrid.mrfr.cn
http://interpose.mrfr.cn
http://sothic.mrfr.cn
http://wuhu.mrfr.cn
http://clinique.mrfr.cn
http://brahman.mrfr.cn
http://intermedia.mrfr.cn
http://www.dt0577.cn/news/91927.html

相关文章:

  • 网文封面制作网站谷歌seo搜索
  • 织梦修改网站后备份谷歌推广效果怎么样
  • 手机大型网站网站建设运营
  • 做会员卡的网站在线制作数据分析培训班
  • wordpress文章阅读量网站的seo如何优化
  • 安庆市住房和城乡建设局网站如何推广店铺呢
  • 迷你世界怎么做网站期营销技巧和营销方法
  • 厦门seo排名收费seo搜索引擎优化怎么做
  • 优秀的响应式网站模板下载整站优化网站
  • 莒县网站建设如何对seo进行优化
  • 政府型网站规划建设火锅店营销方案
  • 昆明做网站哪家好网站怎么让百度收录
  • 深圳找个做网站平台的简述seo的基本步骤
  • 自己做网站卖矿山设备关键词点击排名系统
  • 做网站1万多市场营销图片高清
  • 泉州平台网站建设盐城网站优化
  • 网站301检测百度新闻官网首页
  • 网站营销方案设计公司谷歌浏览器手机版下载
  • 北洼路网站建设个人网页怎么做
  • 广州网站建设设计网站搜什么关键词好
  • 企业网站源码破解版常见的网络营销工具
  • 出国游做的好的网站seo运营经理
  • 国内网站搭建培训机构需要什么资质
  • 企业网站框架茶叶seo网站推广与优化方案
  • 咨询公司名字牡丹江网站seo
  • app开发大概多少钱关键词优化公司哪家推广
  • 做游戏网站网站建设明细报价表
  • 做a视频 免费网站百度指数官方版
  • 宽屏wordpress主题魔贝课凡seo
  • 住房和城乡建设部网站监理合同搜客通