Ayub Khan created RANGER-1066:
---------------------------------
Summary: Atlas-ranger plugin audit log event failure
Key: RANGER-1066
URL: https://issues.apache.org/jira/browse/RANGER-1066
Project: Ranger
Issue Type: Bug
Reporter: Ayub Khan
Priority: Critical
Seems to be like permission issue while logging the audit events for ranger
plugins
{noformat}
2016-06-26 09:38:11,143 INFO -
[org.apache.ranger.audit.queue.AuditBatchQueue1:] ~ Returning HDFS Filesystem
Config: Configuration: core-default.xml, core-site.xml
(HDFSAuditDestination:262)
2016-06-26 09:38:11,167 ERROR -
[org.apache.ranger.audit.queue.AuditBatchQueue1:] ~ Error writing to log file.
(BaseAuditHandler:329)
java.io.IOException: No FileSystem for scheme: hdfs
at
org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2707)
at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2714)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:96)
at
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2750)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2732)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:383)
at
org.apache.ranger.audit.destination.HDFSAuditDestination.getLogFileStream(HDFSAuditDestination.java:220)
at
org.apache.ranger.audit.destination.HDFSAuditDestination.logJSON(HDFSAuditDestination.java:123)
at
org.apache.ranger.audit.destination.HDFSAuditDestination.log(HDFSAuditDestination.java:171)
at
org.apache.ranger.audit.queue.AuditBatchQueue.runDoAs(AuditBatchQueue.java:320)
at
org.apache.ranger.audit.queue.AuditBatchQueue$1.run(AuditBatchQueue.java:217)
at
org.apache.ranger.audit.queue.AuditBatchQueue$1.run(AuditBatchQueue.java:215)
at java..AccessController.doPrivileged(Native Method)
at javax..auth.Subject.doAs(Subject.java:360)
at
org.apache.hadoop..UserGroupInformation.doAs(UserGroupInformation.java:1704)
at
org.apache.ranger.audit.queue.AuditBatchQueue.run(AuditBatchQueue.java:223)
at java.lang.Thread.run(Thread.java:745)
2016-06-26 09:38:11,168 WARN -
[org.apache.ranger.audit.queue.AuditBatchQueue1:] ~ failed to log audit event:
{"repoType":11,"repo":"cl1_atlas","reqUser":"admin","evtTime":"2016-06-26
09:38:10.002","access":"READ","resource":"*","resType":"type","action":"READ","result":1,"policy":18,"enforcer":"ranger-acl","agentHost":"os-d7-atlas-secure-debug-re-3","logType":"RangerAudit","id":"cf902dd0-bbe7-4740-a8e9-602c4130a389","seq_num":2,"event_count":1,"event_dur_ms":0,"tags":[]},
errorMessage= (BaseAuditHandler:413)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)