@Test public void authEnabledV1Auth() throws Exception { HiveConf hcatConf = new HiveConf(this.getClass()); hcatConf.setBoolVar(ConfVars.HIVE_AUTHORIZATION_ENABLED, true); SessionState.start(hcatConf); assertTrue("hcat auth should be enabled", HCatAuthUtil.isAuthorizationEnabled(hcatConf)); }
public static boolean isAuthorizationEnabled(Configuration conf) { return HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_AUTHORIZATION_ENABLED) && SessionState.get().getAuthorizer() != null; }
HCatAuthUtil { public static boolean isAuthorizationEnabled(Configuration conf) { return HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_AUTHORIZATION_ENABLED) && SessionState.get().getAuthorizer() != null; } }
HCatAuthUtil { public static boolean isAuthorizationEnabled(Configuration conf) { return HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_AUTHORIZATION_ENABLED) && SessionState.get().getAuthorizer() != null; }  }
HCatAuthUtil { public static boolean isAuthorizationEnabled(Configuration conf) { return HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_AUTHORIZATION_ENABLED) && SessionState.get().getAuthorizer() != null; }  static boolean isAuthorizationEnabled(Configuration conf); }
HCatAuthUtil { public static boolean isAuthorizationEnabled(Configuration conf) { return HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_AUTHORIZATION_ENABLED) && SessionState.get().getAuthorizer() != null; }  static boolean isAuthorizationEnabled(Configuration conf);  }