shell脚本操作hbase
func ${datatype} ${date} &
function func(){
#自动建表hbase t_gather_logdate
exec $HBASE_HOME/bin/hbase shell <
flush 't_$1_$2'
exit
!
}
exec $HBASE_HOME/bin/hbase shell <
disable 't_gather_$1'
drop 't_gather_$1'
create 't_gather_$1',{NAME => 'cardayinfo',VERSIONS => 1, COMPRESSION => 'snappy'},{NAME => 'idle',VERSIONS => 10000, COMPRESSION => 'snappy'}
exit
!