<?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 Re: Controlling the hadoop logs using log 4j in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-the-hadoop-logs-using-log-4j/m-p/181549#M58602</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13646/khadeermhmd.html" nodeid="13646"&gt;@khadeer  mhmd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;References: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/8882/how-to-control-size-of-log-files-for-various-hdp-c.html" target="_blank"&gt;https://community.hortonworks.com/articles/8882/how-to-control-size-of-log-files-for-various-hdp-c.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/50058/using-log4j-extras-how-to-rotate-as-well-as-zip-th.html" target="_blank"&gt;https://community.hortonworks.com/articles/50058/using-log4j-extras-how-to-rotate-as-well-as-zip-th.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can get the logging config from ambari UI.&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Login to Ambari&lt;/LI&gt;&lt;LI&gt;Goto the config tab of HDFS component.&lt;/LI&gt;&lt;LI&gt;Filter for &lt;STRONG&gt;Advanced &lt;/STRONG&gt;&lt;STRONG&gt;hdfs-log4j&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In case of ambari managed cluster it should be managed via ambari only else it will override out manual changes made to the log4j.propeties file on component restart.&lt;/P&gt;&lt;PRE&gt;/etc/hadoop/conf/log4j.properties &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 02:39:58 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-03-31T02:39:58Z</dc:date>
    <item>
      <title>Controlling the hadoop logs using log 4j</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-the-hadoop-logs-using-log-4j/m-p/181548#M58601</link>
      <description>&lt;P&gt;Do any have the log 4j properties for controlling the hadoop logs&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 02:36:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-the-hadoop-logs-using-log-4j/m-p/181548#M58601</guid>
      <dc:creator>khadeermhmd</dc:creator>
      <dc:date>2017-03-31T02:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the hadoop logs using log 4j</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-the-hadoop-logs-using-log-4j/m-p/181549#M58602</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13646/khadeermhmd.html" nodeid="13646"&gt;@khadeer  mhmd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;References: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/8882/how-to-control-size-of-log-files-for-various-hdp-c.html" target="_blank"&gt;https://community.hortonworks.com/articles/8882/how-to-control-size-of-log-files-for-various-hdp-c.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/50058/using-log4j-extras-how-to-rotate-as-well-as-zip-th.html" target="_blank"&gt;https://community.hortonworks.com/articles/50058/using-log4j-extras-how-to-rotate-as-well-as-zip-th.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can get the logging config from ambari UI.&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Login to Ambari&lt;/LI&gt;&lt;LI&gt;Goto the config tab of HDFS component.&lt;/LI&gt;&lt;LI&gt;Filter for &lt;STRONG&gt;Advanced &lt;/STRONG&gt;&lt;STRONG&gt;hdfs-log4j&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In case of ambari managed cluster it should be managed via ambari only else it will override out manual changes made to the log4j.propeties file on component restart.&lt;/P&gt;&lt;PRE&gt;/etc/hadoop/conf/log4j.properties &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 02:39:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-the-hadoop-logs-using-log-4j/m-p/181549#M58602</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-31T02:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the hadoop logs using log 4j</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-the-hadoop-logs-using-log-4j/m-p/181550#M58603</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13646/khadeermhmd.html" nodeid="13646"&gt;@khadeer  mhmd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Additional references: &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0-Win/bk_HDP_Install_Win/content/ref-8896fe3b-8788-4a88-b7cc-d77d6f2481fc.1.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0-Win/bk_HDP_Install_Win/content/ref-8896fe3b-8788-4a88-b7cc-d77d6f2481fc.1.html&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;
                &lt;CODE&gt;log4j.properties&lt;/CODE&gt;: &lt;P&gt; Use the &lt;CODE&gt;log4j.properties&lt;/CODE&gt; file to modify the log purging
                intervals of the HDFS logs. This file defines logging for all the Hadoop services.
                It includes, information related to appenders used for logging and layout. For more
                details, see the &lt;A href="http://logging.apache.org/log4j/1.2/manual.html"&gt;log4j documentation&lt;/A&gt;. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 02:43:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-the-hadoop-logs-using-log-4j/m-p/181550#M58603</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-31T02:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling the hadoop logs using log 4j</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-the-hadoop-logs-using-log-4j/m-p/181551#M58604</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13646/khadeermhmd.html" nodeid="13646"&gt;@khadeer  mhmd&lt;/A&gt; -  You should use the following properties of the RollingFileAppender to efficiently control the Size and the number of backup index of old log files:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;maxFileSize:&lt;/STRONG&gt;This is the critical size of the file above which the file will be rolled. Default value is 10 MB.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;maxBackupIndex: &lt;/STRONG&gt;This property denotes the number of backup files to be created. Default value is 1.&lt;/P&gt;&lt;P&gt;More details in :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/89171/hdfs-audit-log-file-size-issues.html#comment-89639" target="_blank"&gt;https://community.hortonworks.com/questions/89171/hdfs-audit-log-file-size-issues.html#comment-89639&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 03:12:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Controlling-the-hadoop-logs-using-log-4j/m-p/181551#M58604</guid>
      <dc:creator>namaheshwari</dc:creator>
      <dc:date>2017-03-31T03:12:48Z</dc:date>
    </item>
  </channel>
</rss>

