throw new HowlException(ErrorType.ERROR_ACCESS_CONTROL, ace);
} catch (org.apache.hadoop.fs.permission.AccessControlException ace){
// Older hadoop version will throw this @deprecated Exception.
throw new HowlException(ErrorType.ERROR_ACCESS_CONTROL, ace);
} catch (IOException ioe){
throw new SemanticException(ioe);
}
final UserGroupInformation ugi;
try {
ugi = ShimLoader.getHadoopShims().getUGIForConf(conf);
} catch (LoginException le) {
throw new HowlException(ErrorType.ERROR_ACCESS_CONTROL,le);
} catch (IOException ioe) {
throw new SemanticException(ioe);
}
final FsPermission dirPerms = stat.getPermission();
final String user = HiveConf.getBoolVar(conf, ConfVars.METASTORE_USE_THRIFT_SASL) ?