How to stop hadoop spamming log with "WARN HadoopFileSystemOwner: found no group information for myname (auth:SIMPLE)"

Viewed 1074

I am running a spark app on yarn in AWS EMR and I am getting spammed by MBs of this error: 19/09/30 17:09:29 WARN HadoopFileSystemOwner: found no group information for myname (auth:SIMPLE), using myname as primary group

Following advice from Cloudera here, I tried id myname on my namenode and I see myname under uid, gid and groups.

hdfs groups myname on namenode also shows:
myname : myname

How can I fix or stop this spam of my log?

2 Answers

change/add above property in core-site.xml

<property> 
  <name>hadoop.http.staticuser.user</name> 
  <value>yourname</value> 
</property>
Related