<?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: mysql log cleanup on a Hive server in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/mysql-log-cleanup-on-a-Hive-server/m-p/331830#M231005</link>
    <description>&lt;P&gt;Please check official mysql documentation as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.mysql.com/doc/refman/5.7/en/log-file-maintenance.html" target="_blank"&gt;https://dev.mysql.com/doc/refman/5.7/en/log-file-maintenance.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2021 21:22:23 GMT</pubDate>
    <dc:creator>rpathak</dc:creator>
    <dc:date>2021-12-08T21:22:23Z</dc:date>
    <item>
      <title>mysql log cleanup on a Hive server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-log-cleanup-on-a-Hive-server/m-p/331804#M230987</link>
      <description>&lt;P&gt;I have a Hive server in my cluster running a MySQL instance.&amp;nbsp; The logfile /var/run/mysqld/mysqld.log is getting really large and I need to figure out the proper way to prune it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The server it's running on is CentOS 7.&amp;nbsp; Can I just 'cat /dev/null &amp;gt; mysqld.log' to clear it out, or are there other considerations?&amp;nbsp; Can I get away with simply stopping the MySQL instance briefly to delete or 'zero out' the file, or do I need to stop all the services on that Hive master node in Ambari?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise if you can.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 16:32:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-log-cleanup-on-a-Hive-server/m-p/331804#M230987</guid>
      <dc:creator>MikeB</dc:creator>
      <dc:date>2021-12-08T16:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: mysql log cleanup on a Hive server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-log-cleanup-on-a-Hive-server/m-p/331829#M231004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/90531"&gt;@MikeB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure you are not running anything on the cluster at the time when you are cleaning up the MySQL log file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Stop the MySQL service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Remove the log file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. You can add this parameter in the my.cnf which will limit the size of the MySQL logs on that node.&amp;nbsp;&lt;/P&gt;&lt;P&gt;____&lt;/P&gt;&lt;P&gt;# relay log restrictions&lt;/P&gt;&lt;P&gt;relay&lt;SPAN class="hljs-operator"&gt;-&lt;/SPAN&gt;log&lt;SPAN class="hljs-operator"&gt;-&lt;/SPAN&gt;space&lt;SPAN class="hljs-operator"&gt;-&lt;/SPAN&gt;limit&lt;SPAN class="hljs-operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;1&lt;/SPAN&gt;G&lt;/P&gt;&lt;P&gt;____&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will limit the new mysqld logs to be of max 1Gb.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 21:18:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-log-cleanup-on-a-Hive-server/m-p/331829#M231004</guid>
      <dc:creator>PranavM</dc:creator>
      <dc:date>2021-12-08T21:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: mysql log cleanup on a Hive server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-log-cleanup-on-a-Hive-server/m-p/331830#M231005</link>
      <description>&lt;P&gt;Please check official mysql documentation as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.mysql.com/doc/refman/5.7/en/log-file-maintenance.html" target="_blank"&gt;https://dev.mysql.com/doc/refman/5.7/en/log-file-maintenance.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 21:22:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-log-cleanup-on-a-Hive-server/m-p/331830#M231005</guid>
      <dc:creator>rpathak</dc:creator>
      <dc:date>2021-12-08T21:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: mysql log cleanup on a Hive server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/mysql-log-cleanup-on-a-Hive-server/m-p/332486#M231164</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/90531"&gt;@MikeB&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 19:52:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/mysql-log-cleanup-on-a-Hive-server/m-p/332486#M231164</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2021-12-16T19:52:54Z</dc:date>
    </item>
  </channel>
</rss>

