#!/bin/bash #usage: recreate htable #$1:hbaseTableName TABLENAME=$1 HADOOP_CLASSPATH=hbase classpath
echo " disable '${TABLENAME}' snapshot '${TABLENAME}', '${TABLENAME}Snap' clone_snapshot '${TABLENAME}Snap', '${TABLENAME}New' delete_snapshot '${TABLENAME}Snap' drop '${TABLENAME}' create '${TABLENAME}',{ NAME => 'f', COMPRESSION => 'snappy', IN_MEMORY => true }, {NUMREGIONS => 75, SPLITALGO => 'HexStringSplit'} "|hbase shell HADOOP_CLASSPATH=hbase classpath
hbase org.apache.hadoop.hbase.mapreduce.CopyTable --new.name=${TABLENAME} ${TABLENAME}Newshell