private RangerRestClient getRangerRestClient() {
    if (conf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST_REPL) || conf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST)) {
      return new NoOpRangerRestClient();
    }
    return new RangerRestClientImpl();
  }
RangerLoadTask.

Rask to import Ranger authorization policies.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/RangerLoadTask.java