Skip to main content
Yuriy_but
Gold ⭐️
September 19, 2020
Solved

hdfs audit operations

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?

 

Yuriy_but
Yuriy_butAnswer
Gold ⭐️
September 22, 2020

 

It's start working while I added this parameters.

audit.jpg

2 replies

bingo
Gold ⭐️
September 20, 2020

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.

Translate
Yuriy_but
Yuriy_butAuthorAnswer
Gold ⭐️
September 22, 2020

 

It's start working while I added this parameters.

audit.jpg

Translate