throw new HiveException(e); ret.setAuthenticator(authenticator); return ret;
throw new HiveException(e); ret.setAuthenticator(authenticator); return ret;
throw new HiveException(e); ret.setAuthenticator(authenticator); return ret;
@SuppressWarnings("unchecked") public static HiveAuthorizationProvider getAuthorizeProviderManager( Configuration conf, HiveAuthenticationProvider authenticator) throws HiveException { String clsStr = HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER); HiveAuthorizationProvider ret = null; try { Class<? extends HiveAuthorizationProvider> cls = null; if (clsStr == null || clsStr.trim().equals("")) { cls = DefaultHiveAuthorizationProvider.class; } else { cls = (Class<? extends HiveAuthorizationProvider>) Class.forName( clsStr, true, JavaUtils.getClassLoader()); } if (cls != null) { ret = ReflectionUtils.newInstance(cls, conf); } } catch (Exception e) { throw new HiveException(e); } ret.setAuthenticator(authenticator); return ret; }