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();
    }
RangerDenyTask.

Task to add Ranger Deny Policy
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/RangerDenyTask.java