查看当前hbase中支持的过滤器

hbase(main):060:0* show_filters
Documentation on filters mentioned below can be found at: https://our.intern.facebook.com/intern/wiki/index.php/HBase/Filter_Language
ColumnPrefixFilter
TimestampsFilter
PageFilter
MultipleColumnPrefixFilter
FamilyFilter
ColumnPaginationFilter
SingleColumnValueFilter
RowFilter
QualifierFilter
ColumnRangeFilter
ValueFilter
PrefixFilter
SingleColumnValueExcludeFilter
ColumnCountGetFilter
InclusiveStopFilter
DependentColumnFilter
FirstKeyOnlyFilter
KeyOnlyFilter

新建测试表和数据

hbase(main):072:0* create 'emp', 'mycf'

put 'emp', 'row1', 'mycf:name', 'adams'
put 'emp', 'row1', 'mycf:depart', 'research'
put 'emp', 'row1', 'mycf:job', 'clerk'
put 'emp', 'row1', 'mycf:id', ''
put 'emp', 'row1', 'mycf:locate', 'dallas' put 'emp', 'row2', 'mycf:name', 'allen'
put 'emp', 'row2', 'mycf:depart', 'sales'
put 'emp', 'row2', 'mycf:job', 'salesman'
put 'emp', 'row2', 'mycf:id', ''
put 'emp', 'row2', 'mycf:locate', 'chicago' put 'emp', 'row3', 'mycf:name', 'blake'
put 'emp', 'row3', 'mycf:depart', 'sales'
put 'emp', 'row3', 'mycf:job', 'manager'
put 'emp', 'row3', 'mycf:id', ''
put 'emp', 'row3', 'mycf:locate', 'chicago' put 'emp', 'row4', 'mycf:name', 'clark'
put 'emp', 'row4', 'mycf:depart', 'accounting'
put 'emp', 'row4', 'mycf:job', 'manager'
put 'emp', 'row4', 'mycf:id', ''
put 'emp', 'row4', 'mycf:locate', 'new york' put 'emp', 'row5', 'mycf:name', 'ford'
put 'emp', 'row5', 'mycf:depart', 'research'
put 'emp', 'row5', 'mycf:job', 'analyst'
put 'emp', 'row5', 'mycf:id', ''
put 'emp', 'row5', 'mycf:locate', 'dallas' put 'emp', 'row6', 'mycf:name', 'james'
put 'emp', 'row6', 'mycf:depart', 'sales'
put 'emp', 'row6', 'mycf:job', 'clerk'
put 'emp', 'row6', 'mycf:id', ''
put 'emp', 'row6', 'mycf:locate', 'chicago' put 'emp', 'row7', 'mycf:name', 'jones'
put 'emp', 'row7', 'mycf:depart', 'research'
put 'emp', 'row7', 'mycf:job', 'manager'
put 'emp', 'row7', 'mycf:id', ''
put 'emp', 'row7', 'mycf:locate', 'dallas' put 'emp', 'row8', 'mycf:name', 'king'
put 'emp', 'row8', 'mycf:depart', 'accounting'
put 'emp', 'row8', 'mycf:job', 'president'
put 'emp', 'row8', 'mycf:id', ''
put 'emp', 'row8', 'mycf:locate', 'new york' hbase(main):180:0> scan 'emp'
ROW COLUMN+CELL
row1 column=mycf:depart, timestamp=1555846776542, value=research
row1 column=mycf:id, timestamp=1555846776590, value=7876
row1 column=mycf:job, timestamp=1555846776566, value=clerk
row1 column=mycf:locate, timestamp=1555846776618, value=dallas
row1 column=mycf:name, timestamp=1555846776511, value=adams
row2 column=mycf:depart, timestamp=1555846776687, value=sales
row2 column=mycf:id, timestamp=1555846776736, value=7499
row2 column=mycf:job, timestamp=1555846776712, value=salesman
row2 column=mycf:locate, timestamp=1555846776770, value=chicago
row2 column=mycf:name, timestamp=1555846776662, value=allen
row3 column=mycf:depart, timestamp=1555846776838, value=sales
row3 column=mycf:id, timestamp=1555846776887, value=7698
row3 column=mycf:job, timestamp=1555846776863, value=manager
row3 column=mycf:locate, timestamp=1555846776912, value=chicago
row3 column=mycf:name, timestamp=1555846776806, value=blake
row4 column=mycf:depart, timestamp=1555846776976, value=accounting
row4 column=mycf:id, timestamp=1555846777027, value=7782
row4 column=mycf:job, timestamp=1555846777002, value=manager
row4 column=mycf:locate, timestamp=1555846777086, value=new york
row4 column=mycf:name, timestamp=1555846776952, value=clark
row5 column=mycf:depart, timestamp=1555846777146, value=research
row5 column=mycf:id, timestamp=1555846777193, value=7902
row5 column=mycf:job, timestamp=1555846777169, value=analyst
row5 column=mycf:locate, timestamp=1555846777218, value=dallas
row5 column=mycf:name, timestamp=1555846777121, value=ford
row6 column=mycf:depart, timestamp=1555846777277, value=sales
row6 column=mycf:id, timestamp=1555846777324, value=7900
row6 column=mycf:job, timestamp=1555846777301, value=clerk
row6 column=mycf:locate, timestamp=1555846777355, value=chicago
row6 column=mycf:name, timestamp=1555846777253, value=james
row7 column=mycf:depart, timestamp=1555846777416, value=research
row7 column=mycf:id, timestamp=1555846777465, value=7566
row7 column=mycf:job, timestamp=1555846777441, value=manager
row7 column=mycf:locate, timestamp=1555846777491, value=dallas
row7 column=mycf:name, timestamp=1555846777390, value=jones
row8 column=mycf:depart, timestamp=1555846777556, value=accounting
row8 column=mycf:id, timestamp=1555846777604, value=7839
row8 column=mycf:job, timestamp=1555846777581, value=president
row8 column=mycf:locate, timestamp=1555846777628, value=new york
row8 column=mycf:name, timestamp=1555846777526, value=king
8 row(s) in 0.1420 seconds

PrefixFilter

hbase(main):191:0* scan 'emp', {FILTER => "PrefixFilter ('row1')"}
ROW COLUMN+CELL
row1 column=mycf:depart, timestamp=1555846776542, value=research
row1 column=mycf:id, timestamp=1555846776590, value=7876
row1 column=mycf:job, timestamp=1555846776566, value=clerk
row1 column=mycf:locate, timestamp=1555846776618, value=dallas
row1 column=mycf:name, timestamp=1555846776511, value=adams
1 row(s) in 0.0510 seconds

ColumnPrefixFilter

hbase(main):192:0> scan 'emp', {FILTER => "ColumnPrefixFilter ('name')"}
ROW COLUMN+CELL
row1 column=mycf:name, timestamp=1555846776511, value=adams
row2 column=mycf:name, timestamp=1555846776662, value=allen
row3 column=mycf:name, timestamp=1555846776806, value=blake
row4 column=mycf:name, timestamp=1555846776952, value=clark
row5 column=mycf:name, timestamp=1555846777121, value=ford
row6 column=mycf:name, timestamp=1555846777253, value=james
row7 column=mycf:name, timestamp=1555846777390, value=jones
row8 column=mycf:name, timestamp=1555846777526, value=king
8 row(s) in 0.0720 seconds

ValueFilter

hbase(main):038:0* scan 'emp', FILTER=>"ValueFilter(=,'substring:sales')"
ROW COLUMN+CELL
row2 column=mycf:depart, timestamp=1555846776687, value=sales
row2 column=mycf:job, timestamp=1555846776712, value=salesman
row3 column=mycf:depart, timestamp=1555846776838, value=sales
row6 column=mycf:depart, timestamp=1555846777277, value=sales
3 row(s) in 0.0540 seconds
create 'test', 'cf1', { SPLITS => ['rk-1000', 'rk-2000', 'rk-3000'] }

for i in ''..'' do for j in ''..'' do \
for k in ''..'' do put 'test', "rk-#{i}#{j}#{k}", \
"cf1:#{j}#{k}", "#{j}#{k}" end end end

hbase-0.92.1过滤器学习的更多相关文章

  1. Hbase 0.92.1 Replication

    原集群 服务器名称 服务 sht-sgmhadoopnn-01 Master,NameNode,JobTracker sht-sgmhadoopdn-01 RegionServer,DataNode, ...

  2. Hbase 0.92.1集群数据迁移到新集群

    老集群 hbase(main):001:0> status 4 servers, 0 dead, 0.0000 average load hbase(main):002:0> list T ...

  3. 《JavaWeb从入门到改行》过滤器学习笔记

    >"; display: block; height: 0; clear: both; visibility: hidden; } #sitemap, #sitemap ul{disp ...

  4. Filter过滤器学习

    一.Filter简介 Filter也称之为过滤器,它是Servlet技术中最激动人心的技术,WEB开发人员通过Filter技术,对web服务器管理的所有web资源:例如Jsp, Servlet, 静态 ...

  5. Wireshark 抓包过滤器学习

    Wireshark 抓包过滤器学习 wireshark中,分为两种过滤器:捕获过滤器 和 显示过滤器 捕获过滤器 是指wireshark一开始在抓包时,就确定要抓取哪些类型的包:对于不需要的,不进行抓 ...

  6. 破解UltraEdit64 Version 28.20.0.92 技术分享。

    本文为原创作品,转载请注明出处,作者:Chris.xisaer E-mail:69920579@qq.com QQ群3244694 补丁程序下载地址:https://download.csdn.net ...

  7. hadoop2.2.0 + hbase 0.94 + hive 0.12 配置记录

    一开始用hadoop2.2.0 + hbase 0.96 + hive 0.12 ,基本全部都配好了.只有在hive中查询hbase的表出错.以直报如下错误: java.io.IOException: ...

  8. Hbase 0.98集群搭建的详细步骤

    准备工作 Hbase的搭建是依赖于Hadoop的,Hbase的数据文件实际上存储在HDFS文件系统中,所以我们需要先搭建hadoop环境,之前的博文中已经搭建过了(详见http://www.cnblo ...

  9. Hbase 0.95.2介绍及下载地址

    HBase是一个分布式的.面向列的开源数据库,该技术来源于Google论文“Bigtable:一个结构化数据的分布式存储系统”.就像Bigtable利用了Google文件系统(File System) ...

随机推荐

  1. t-SNE完整笔记

    http://www.datakit.cn/blog/2017/02/05/t_sne_full.html t-SNE(t-distributed stochastic neighbor embedd ...

  2. django signals 信号

    django signals 信号 配置方式 app下的 __init__.py default_app_config="web.apps.WebConfig" #初始化app配置 ...

  3. 跨域请求携带cookie

      function ajaxPostRequestCipherMachine(url, param) { var url = url; var dict = { 'ret' : false, 'er ...

  4. GO语言从入门到放弃目录

    GO语言基础 第一个GO程序 GO语言常量和变量 GO语言数据类型 GO语言流程控制 GO语言数组 GO语言切片 GO语言 map GO语言函数 GO语言指针 Go语言接口 GO语言常用包 GO语言的 ...

  5. 外网访问内网Docker容器

    外网访问内网Docker容器 本地安装了Docker容器,只能在局域网内访问,怎样从外网也能访问本地Docker容器? 本文将介绍具体的实现步骤. 1. 准备工作 1.1 安装并启动Docker容器 ...

  6. 兼容ie8总结

    最近做了个兼容ie8的项目,把遇到的一些坑总结一下,欢迎大神指正,共勉. 一. js相关 1.  关于库的引用 jquery只能引用1.x的版本,swiper只能引用2.x的版本. 2. 动态生成的d ...

  7. RC4加密解密

    package util; public class RC4Util { public static String decry_RC4(byte[] data, String key) { if (d ...

  8. linux目录结构特点

    #####linux目录结构特点一切从根开始linx中每个设备可以挂载在任何目录上面磁盘/设备/分区没有挂载 无法使用 举例-linux下面使用光盘###1.把光盘放入到光驱中 ###2.linux中 ...

  9. 迭代(遍历)时候不可以使用集合的remove和add方法,但可使用Java迭代器的remove和add方法

    不要在 foreach 循环里进行元素的 remove/add 操作.remove 元素请使用 Iterator 方式. 反例: public class ForeachTest { private ...

  10. [Python数据挖掘]第4章、数据预处理

    数据预处理主要包括数据清洗.数据集成.数据变换和数据规约,处理过程如图所示. 一.数据清洗 1.缺失值处理:删除.插补.不处理 ## 拉格朗日插值代码(使用缺失值前后各5个未缺失的数据建模) impo ...