如何在小型hbase群集上执行hbase外壳?

如何在小型hbase群集上执行hbase外壳?,hbase,hdfs,Hbase,Hdfs,我将进行集成测试,为此我启动MiniHbaseCluster()。如何在其上运行hbase shell脚本?只需按照下面的示例编写相同的bash脚本EOF即可 #!/bin/sh hbase shell <<EOF scan 'mytable',{LIMIT => 10} exit EOF #/垃圾箱/垃圾箱 hbase外壳



我将进行集成测试,为此我启动MiniHbaseCluster()。如何在其上运行hbase shell脚本?

只需按照下面的示例编写相同的bash脚本EOF即可

#!/bin/sh
hbase shell <<EOF 
scan 'mytable',{LIMIT => 10}
exit
EOF
#/垃圾箱/垃圾箱
hbase外壳