public static final Log LOG = LogFactory.getLog("hive.metastore.warehouse");
public Warehouse(Configuration conf) throws MetaException {
String whRootString = HiveConf.getVar(conf, HiveConf.ConfVars.METASTOREWAREHOUSE);
if(StringUtils.isBlank(whRootString)) {
throw new MetaException(HiveConf.ConfVars.METASTOREWAREHOUSE.varname + " is not set in the config or blank");
}
whRoot = new Path(whRootString);
URI uri = whRoot.toUri();
// if the METASTOREWAREHOUSE value doesn't have schema and authority specified then inherit
// from fs.default.name in hadoop-site.xml