HBASE-将查询传递给 "hbase shell" 命令

HBASE-Passe Query to the "hbase shell" command

我想知道是否有办法将查询传递给 hbase shell 命令。

事实上,我想做这样的事情:

#!/bin/bash
hbase shell -q " flush ‘my_region_name’"

谢谢!

阿丽娜·盖尔曼

我在下面尝试过,它正在工作:

echo 'list'| hbase shell

基本上,echo 'command' hbase shell 应该可以工作。