public static void checkAndInit(Configuration conf) throws MetaException {
try {
HBaseAdmin admin = new HBaseAdmin(conf);
String metaTable = conf.get(FConstants.METASTORE_TABLE,
FConstants.DEFAULT_METASTORE_TABLE);
if (!admin.tableExists(metaTable)) {
// if meta table don't exists just create it.
HTableDescriptor desc = new HTableDescriptor(metaTable);
HColumnDescriptor family = new HColumnDescriptor(
FConstants.CATALOG_FAMILY_STR);
family.setInMemory(true);