Support Questions
Find answers, ask questions, and share your expertise

hdfs audit operations

Explorer

Hello.

I need advice there I can see log(audit) of hdfs operations.

For example(mkdir, putFromLocal, delete file,change file).

I tried use command from cmd "hdfs dfs -mkdir /tmp/mydir" - and don't see this log.

There can I find it?

 

1 ACCEPTED SOLUTION

Accepted Solutions

Explorer

 

It's start working while I added this parameters.

audit.jpg

View solution in original post

2 REPLIES 2

Explorer

In namenode host;

current file /var/log/hadoop/$HDFS_USER/hdfs-audit.log.

history file with timestamp.

you will find 'cmd=mkdirs'... in the log.

Explorer

 

It's start working while I added this parameters.

audit.jpg

View solution in original post