美文网首页
Hbase 基础实战

Hbase 基础实战

作者: 万物皆有序和公式 | 来源:发表于2018-12-19 10:48 被阅读0次

    查询

    scan 'TABLE_NAME', FILTER => "PrefixFilter ('MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B07KTXZQ4M')"

    MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B07KTXZQ4M column=product:asin, timestamp=1545102995734, value=B07KTXZQ4M
    MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B07KTXZQ4M column=product:flag, timestamp=1545102995734, value=1
    MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B07KTXZQ4M column=product:marketplaceId, timestamp=1545102995734, value=ATVPDKIKX0DER
    MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B07KTXZQ4M column=product:platform, timestamp=1545102995734, value=AMAZON_NA
    MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B07KTXZQ4M column=product:sellerId, timestamp=1545102995734, value=A2G3XCNY3AIGWM
    MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B07KTXZQ4M column=product:sellerName, timestamp=1545102995734, value=\xE5\x87\x8C\xE6\x80\xBB\xE7\x9A\x84\xE5\xBA\x97\xE9\x93\xBA

    插入

    put 'TABLE_NAME','MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B0793D8HMC','product:asin','B0793D8HMC'
    put 'TABLE_NAME','MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B0793D8HMC','product:flag','1'
    put 'TABLE_NAME','MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B0793D8HMC','product:marketplaceId','ATVPDKIKX0DER'
    put 'TABLE_NAME','MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B0793D8HMC','product:platform','AMAZON_NA'
    put 'TABLE_NAME','MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B0793D8HMC','product:sellerId','A2G3XCNY3AIGWM'
    put 'TABLE_NAME','MWGIA3YNCX3G2A:AMAZON_NA:ATVPDKIKX0DER:B0793D8HMC','product:sellerName','liuweicoffee'

    相关文章

      网友评论

          本文标题:Hbase 基础实战

          本文链接:https://www.haomeiwen.com/subject/xobdkqtx.html