美文网首页
Hbase Shell

Hbase Shell

作者: 天之見證 | 来源:发表于2018-12-28 11:47 被阅读0次

一些常用的hbase shell命令示例:

hbase中出现16进制字符串的处理:

将其用 双引号 引起来

统计hbase全表的总数:

hbase org.apache.hadoop.hbase.mapreduce.RowCounter 'table' --starttime=1541088000000 --endtime=1541174400000

修改表属性:

alter 'hbase_table', {TABLE_ATTRIBUTES => {METADATA => {'SPLIT_POLICY' => 'org.apache.hadoop.hbase.regionserver.DisabledRegionSplitPolicy'}}}
alter  'hbase_table',  MAX_FILESIZE => '2147483648'

scan:

scan 'hbase:meta',{FILTER=>"PrefixFilter('table_name')", LIMIT=>10}
scan 'hbase:meta',{FILTER=>"RowFilter(=,'substring:xxxx')", LIMIT=>10}

相关文章

网友评论

      本文标题:Hbase Shell

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