hbase_table=`echo '"CDR_ADMISSION_INFO"' `
CF=`echo '"f"' `
full_log_name=hbase.log
echo `hbase shell <<EOF
exists $hbase_table
EOF` | grep 'does exist' >$full_log_name 2>&1
rtstatus=$?
echo "$rtstatus"
echo `hbase shell <<EOF
disable $hbase_table
drop $hbase_table
EOF`
echo "删除$hbase_table成功'"
echo "'create table ......'"
`hbase shell <<EOF
create $hbase_table,{NAME => $CF,COMPRESSION => 'snappy'},{SPLITS =>['3000','6000','9000']}
EOF`
echo "创建$hbase_table成功'"