diff options
author | Bryan Newbold <bnewbold@archive.org> | 2018-08-27 14:32:19 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2018-08-27 14:32:19 -0700 |
commit | a7156b06340460e0e70a19891e161b8b8f4f2078 (patch) | |
tree | 029a04f6558b99f060e845ab1ef00baa6cd39600 /hbase | |
parent | 4c374c647d8fecce827cabcb579e5aae20f198db (diff) | |
parent | d2b4da4c55a24468a0cbfdc9f567449d4e913331 (diff) | |
download | sandcrawler-a7156b06340460e0e70a19891e161b8b8f4f2078.tar.gz sandcrawler-a7156b06340460e0e70a19891e161b8b8f4f2078.zip |
Merge branch 'bnewbold-ungrobided'
Diffstat (limited to 'hbase')
-rw-r--r-- | hbase/howto.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hbase/howto.md b/hbase/howto.md index fcf561f..26d33f4 100644 --- a/hbase/howto.md +++ b/hbase/howto.md @@ -26,3 +26,17 @@ To interact with this config, use happybase (python) config: # Test connection conn.tables() +## Queries From Shell + +Fetch all columns for a single row: + + hbase> get 'wbgrp-journal-extract-0-qa', 'sha1:3I42H3S6NNFQ2MSVX7XZKYAYSCX5QBYJ' + +Fetch multiple columns for a single row, using column families: + + hbase> get 'wbgrp-journal-extract-0-qa', 'sha1:3I42H3S6NNFQ2MSVX7XZKYAYSCX5QBYJ', 'f', 'file' + +Scan a fixed number of rows (here 5) starting at a specific key prefix, all +columns: + + hbase> scan 'wbgrp-journal-extract-0-qa',{LIMIT=>5,STARTROW=>'sha1:A'} |