use of org.apache.ranger.plugin.audit.RangerDefaultAuditHandler in project ranger by apache.
the class StormRangerPlugin method init.
// this method isn't expected to be invoked often. Per knox design this would be invoked ONCE right after the authorizer servlet is loaded
@Override
public synchronized void init() {
if (!initialized) {
// mandatory call to base plugin
super.init();
// One time call to register the audit hander with the policy engine.
super.setResultProcessor(new RangerDefaultAuditHandler());
// this needed to set things right in the nimbus process
if (KerberosName.getRules() == null) {
KerberosName.setRules("DEFAULT");
}
initialized = true;
LOG.info("StormRangerPlugin initialized!");
}
}
use of org.apache.ranger.plugin.audit.RangerDefaultAuditHandler in project ranger by apache.
the class RangerKylinAccessRequest method init.
@Override
public void init() {
super.init();
RangerDefaultAuditHandler auditHandler = new RangerDefaultAuditHandler();
super.setResultProcessor(auditHandler);
}
use of org.apache.ranger.plugin.audit.RangerDefaultAuditHandler in project ranger by apache.
the class RangerSqoopAccessRequest method init.
@Override
public void init() {
super.init();
RangerDefaultAuditHandler auditHandler = new RangerDefaultAuditHandler();
super.setResultProcessor(auditHandler);
}
use of org.apache.ranger.plugin.audit.RangerDefaultAuditHandler in project ranger by apache.
the class RangerYarnAuditHandler method init.
@Override
public void init() {
super.init();
RangerDefaultAuditHandler auditHandler = new RangerDefaultAuditHandler();
super.setResultProcessor(auditHandler);
}
use of org.apache.ranger.plugin.audit.RangerDefaultAuditHandler in project ranger by apache.
the class RangerAuthorizer method init.
public void init() {
if (plugin == null) {
synchronized (RangerAuthorizer.class) {
if (plugin == null) {
plugin = new RangerBasePlugin("sampleapp", "sampleapp");
plugin.setResultProcessor(new RangerDefaultAuditHandler());
plugin.init();
}
}
}
}
Aggregations