<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question I have accidentally deleted my current hdfs-audit.log file and namenode.log file. How to create a new log files without restarting name node? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190606#M152695</link>
    <description />
    <pubDate>Sat, 22 Jul 2017 00:15:43 GMT</pubDate>
    <dc:creator>pauljoshiva</dc:creator>
    <dc:date>2017-07-22T00:15:43Z</dc:date>
    <item>
      <title>I have accidentally deleted my current hdfs-audit.log file and namenode.log file. How to create a new log files without restarting name node?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190606#M152695</link>
      <description />
      <pubDate>Sat, 22 Jul 2017 00:15:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190606#M152695</guid>
      <dc:creator>pauljoshiva</dc:creator>
      <dc:date>2017-07-22T00:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: I have accidentally deleted my current hdfs-audit.log file and namenode.log file. How to create a new log files without restarting name node?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190607#M152696</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/23287/pauljoshiva.html" nodeid="23287"&gt;@Joshva Peter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;hdfs-audit and namenode log files are generated via log4j framework. Which is initialized at the time of component startup and creates the log file for writing  or use the existing log file for writing in append mode. However &lt;STRONG&gt;if you delete these log files in the running mode&lt;/STRONG&gt; of the components then the logging will not be reinitialized hence you will not see the new log file generated. This happens because the log4j appender will has a handle for the deleted file hence it will continue to write to it (which does not exist now because it is deleted), log4j will not detect that it has been deleted.&lt;/P&gt;&lt;P&gt;In custom applications we can make it happen by reinitializing the logging configuration via code, But existing components like NameNode does not control logging initialization/resetConfiguration at the code level.&lt;/P&gt;&lt;PRE&gt;org.apache.log4j.LogManager.resetConfiguration();&lt;/PRE&gt;&lt;P&gt;So you will need to restart the affected components (like NameNode in this case) to see the new files getting created.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2017 00:21:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190607#M152696</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-22T00:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: I have accidentally deleted my current hdfs-audit.log file and namenode.log file. How to create a new log files without restarting name node?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190608#M152697</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; for your suggestion. It worked fined after the reboot.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2017 06:56:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190608#M152697</guid>
      <dc:creator>pauljoshiva</dc:creator>
      <dc:date>2017-07-22T06:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: I have accidentally deleted my current hdfs-audit.log file and namenode.log file. How to create a new log files without restarting name node?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190609#M152698</link>
      <description>&lt;P&gt;#thank_you &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; sir&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2017 14:47:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190609#M152698</guid>
      <dc:creator>manish555111</dc:creator>
      <dc:date>2017-07-23T14:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: I have accidentally deleted my current hdfs-audit.log file and namenode.log file. How to create a new log files without restarting name node?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190610#M152699</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/23287/pauljoshiva.html" nodeid="23287"&gt;@Joshva Peter
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If this helped answering your query then it will be great if you mark this thread as "Answered" by clicking on the "Accepted" link, that way it will be helpful for HCC users to quickly find the answered threads.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/23287/pauljoshiva.html" nodeid="23287"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2017 15:08:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-have-accidentally-deleted-my-current-hdfs-audit-log-file/m-p/190610#M152699</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-23T15:08:31Z</dc:date>
    </item>
  </channel>
</rss>

