title: how to clean the hadoop-hdfs logs under /var/log/hadoop-hdfs
body: <p>my name node in the hadoop cluster turned to bad health because &quot;The role's log directory is non a file system with less than 4GB of its space free.  /var/log/hadoop-hdfs (free: 2.4GB (11.12%), capacity:21.7 GB&quot;</p>
  <p>I looked into that folder and found that I have 5.5GB of log files called &quot;hdfs-audit.log.0&quot; -&quot;hdfs-audit.log.20&quot; in it. I read these files and I really don't need to save these logs. I am wondering is there a way to permanently delete them and never generate them again? ( I tried to delete them manually, but it seems that they came back after a few hours.)</p>
  <p>I also tried to add <code>&quot;log4j.logger.org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit=WARN,NullAppender&quot;</code> in my <code>/etc/hadoop/conf/log4j.properties</code>. But it did not prevent those files from &quot;coming back&quot;.</p>
  <p>Thank you for your help in advance!</p>