Created 10-05-2016 08:52 AM
hello all,
i must make an audit about the activity of HDFS, for example who was write on hdfs, who was copy from hdfs ?
It is possible to see that some where ?
regards
Created 10-05-2016 09:25 AM
If you have Ranger configured then its very easy, just enable HDFS plugin and ranger will do this for you.
More information on Ranger - http://hortonworks.com/apache/ranger/
Or if you don't have Ranger then you can check this by referring to hdfs audit logs. ( /var/log/hadoop/hdfs/hdfs-audit.log)
Hope this information helps.
Created 10-05-2016 09:25 AM
If you have Ranger configured then its very easy, just enable HDFS plugin and ranger will do this for you.
More information on Ranger - http://hortonworks.com/apache/ranger/
Or if you don't have Ranger then you can check this by referring to hdfs audit logs. ( /var/log/hadoop/hdfs/hdfs-audit.log)
Hope this information helps.
Created 10-05-2016 09:44 AM
@Kuldeep Kulkarni : thanks, i'll check hdfs-audit.log but now my question how i can know what's command/job is behind this log
for example :
hdfs-audit.log:2016-10-05 03:00:17,303 INFO FSNamesystem.audit: allowed=true ugi=zazi (auth:TOKEN) via oozie/master003@fma.com (auth:TOKEN) ip=/10.xx.224.93 cmd=open src=/user/prote/private/flume/20161004/FlumeData.428492.gz dst=null perm=null proto=rpc callerContext=CLI
Created 10-05-2016 11:15 AM
Unfortunately, you cann't get job related information however you can guess the job from above information.
Username - zazi
Service principal - oozie/master003@fma.com
Host from where file was accessed - 10.xx.224.9
Please accept the answer if this was helpful.
Created 10-05-2016 09:52 AM
Can you check the same from Ranger UI->Access->Audit, which will display the audit in more formatted. You can pass the screenshot here to get more details.
Ranger UI - http://<ranger_host>:6080
Created 10-05-2016 09:58 AM
I don't have RANGER