hbase shell执行命令的方式

一、

[plain]  view plain  copy
  1. echo "scan 'ns_monitor:t_monitor_io',{LIMIT=>1}" | hbase shell  
  2.   
  3. echo "scan 'ns_monitor:t_monitor_io',{FILTER=>\"PrefixFilter('2001-01-01|192.168.16.123|io_r_s')\"}" | hbase shell  

二、

hbase shell ./hbaseShell.txt 


cat ./hbaseShell.txt

list
scan 'ns_monitor:t_monitor_io',{LIMIT=>1}
exit

猜你喜欢

转载自blog.csdn.net/gyxinguan/article/details/80529330