add hbase version support.
refine code.