当前位置: 移动技术网 > 网络运营>服务器>Linux > hbase-shell批量命令执行脚本的方法

hbase-shell批量命令执行脚本的方法

2018年08月08日  | 移动技术网网络运营  | 我要评论
批量执行hbase shell 命令 #!/bin/bash source /etc/profile exec $hbase_home/bin/hbase

批量执行hbase shell 命令

#!/bin/bash 
source /etc/profile
exec $hbase_home/bin/hbase shell <<eof 
  truncate 'tracker_total_apk_fact_zyt'
major_compact('t_abc')
disable 't_abc'
drop 't_abc'
create 't_abc', 'info'

eof

以上这篇hbase-shell批量命令执行脚本的方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持移动技术网。

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网