Get output from scans in hbase shell

前端 未结 4 2121
我在风中等你
我在风中等你 2020-12-24 06:09

Is there any way I can output the results from a scan in the hbase shell to a file? I\'m assuming this is easy but I haven\'t been able to find anything in the documentation

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-24 06:53

    You can also use here strings too (if your shell supports them):

    $ hbase shell <<< "scan 'sometable'" > myoutput.txt
    

    Above I'm doing this in Bash on a Linux system, for example.

提交回复
热议问题