Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以通过在列内搜索字符串来搜索 hbase shell 中的记录?
例如,假设我的 hbase 表有一个键为“1”,列为“col1”,值为“某事是的,是的,是的,是的”
我想返回表中 col1 包含字符串“hey”的所有记录。
那可能吗?
您可以使用 SingleColumnValueFilter 和 RegEx。
scan 'tableName', {FILTER=>"SingleColumnValueFilter ('column family','col1',=,'regexstring:.*hey.*')"}