我试图将数据从HBase Shell导出到我可以解析的文本文件,并添加到msysql数据库。从HBase shell导出数据
我目前使用下面的命令:
echo "scan 'registration',{COLUMNS=>'registration:status'}" | hbase shell > registration.txt
其中出口一切从HBase的外壳到registration.txt。
我怎样才能去掉外壳的介绍,并总结,只是将数据追加到文本文件中的行:
如:壳牌进我想省略:
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.94.5-mapr, Wed May 1 7:42:07 PDT 2013
总结我想省略:
ROW COLUMN+CELL
4419 row(s) in 12.9840 seconds
它的工作原理!直接在shell中运行。不在HBase shell提示符下 – Sakthivel