当前位置:首页 - Hbase

hbase查询语句

作者:高景洋 日期:2022-06-13 10:41:02 浏览次数:823

在工作过程中,我们经常需要连到hbase上,手动动hbase中的数据,进行查询操作,那我们应如何在hbase中进行查询语句的执行呢?

1、连接hbase

     在能连接hbase的机器,或跳板机上执行 hbase shell 命令,进入hbase

2、执行查询语句,命令格式如下:

     get '命名空间:表名','rowKey'

     例:get 'Collect:ProductIndex','d5c_0000071|detail.tmall.com/item.htm?id=643276798570'

    执行后即可得到查询结果

本文永久性链接:
<a href="http://r4.com.cn/art215.aspx">hbase查询语句</a>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 18.218.254.122 X-Real-Ip: 18.218.254.122 X-Domain: r4.com.cn X-Request: GET /art215.aspx HTTP/1.1 X-Request-Uri: /art215.aspx Connection: close Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)