hbase的shell小技巧

来源:互联网 发布:qq堂mac版官方下载 编辑:程序博客网 时间:2024/05/09 11:19
  • put二进制

    在hbase的shell中执行:put 't1', 'r1', 'c1', "\x00\x00\x00\x01"
  • 导出查询结果

    在linux的shell中执行:echo "scan 't1', {COLUMNS => ['c1', 'c2'], CACHE_BLOCKS => false}" | hbase shell > result.log
0 0