如何扫描hbase中的特定列值? [英] How to scan for a particular column value in hbase?
本文介绍了如何扫描hbase中的特定列值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是使用hbase的新手。
我有多个有属性的列
如何搜索特定属性。
如何在这种情况下使用扫描命令?
扫描'table_name'给出所有记录。
$ b
扫描'tablename',{COLUMNS =>'cfamily:cqualifier' }
您可以同时扫描多列,使用
扫描'tablename',{COLUMNS => ['cf1:cq1','cf2:cq2']}
I am new to using hbase. I have multiple columns which have attributes
How do I search for a particular attribute.
how do I use the scan command in this case?
scan 'table_name' gives all the records.
解决方案
you can use,
scan 'tablename' , {COLUMNS => 'cfamily:cqualifier'}
You can scan multiple columns at a same time using,
scan 'tablename' , {COLUMNS => ['cf1:cq1' , 'cf2:cq2']}
这篇关于如何扫描hbase中的特定列值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文