x00\x01
のように16進数の行キーがある場合、HBASEシェルでそれをget
するにはどうすればよいですか?
hbase(main):004:0> scan 'tsdb-tree'
ROW COLUMN+CELL
\x00\x01 column=t:tree, timestamp=1379421652764, value={"name":"...
通常のget
コマンドを使用して参照できますが、16進キー二重引用符で囲む必要があります、一重引用符は機能しません。
たとえば、get 'tsdb-tree', "\x00\x01"
を使用します。
hbase(main):016:0> scan 'tsdb-tree'
ROW COLUMN+CELL
\x00\x01 column=t:tree, timestamp=1379421652764, value={"name":"TestTree1","description":"","notes":"","strictMatch":false,"created":0,"enabled":false,"storeFailures":false}
\x00\x01 column=t:tree_rule:0:0, timestamp=1379371753132, value={"type":"METRIC","field":"Host","regex":"","separator":"","description":"","notes":"","level":0,"order":0,"treeId":1,"customField":"","regexGroupIdx":0,"displayF
ormat":""}
\x00\x02 column=t:tree, timestamp=1379372909057, value={"name":"testTree2","description":"","notes":"","strictMatch":false,"created":0,"enabled":false,"storeFailures":false}
2 row(s) in 0.0300 seconds
hbase(main):017:0> get 'tsdb-tree', "\x00\x01"
COLUMN CELL
t:tree timestamp=1379421652764, value={"name":"TestTree1","description":"","notes":"","strictMatch":false,"created":0,"enabled":false,"storeFailures":false}
t:tree_rule:0:0 timestamp=1379371753132, value={"type":"METRIC","field":"Host","regex":"","separator":"","description":"","notes":"","level":0,"order":0,"treeId":1,"customField":"","regexGroupIdx":0,"displayFormat":""}
2 row(s) in 0.0140 seconds