<?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 How do you delete old Ambari Operations History in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-you-delete-old-Ambari-Operations-History/m-p/131578#M47641</link>
    <description>&lt;P style="margin-left: 20px;"&gt;In Ambari 2.2.1 how can I delete old Ambari Server Ops History? &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;I think that the history of tasks is stored in /var/lib/ambari-agent/data. &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Can I simply delete the folder contents?  &lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2016 01:04:28 GMT</pubDate>
    <dc:creator>wgonzalez</dc:creator>
    <dc:date>2016-12-01T01:04:28Z</dc:date>
    <item>
      <title>How do you delete old Ambari Operations History</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-you-delete-old-Ambari-Operations-History/m-p/131578#M47641</link>
      <description>&lt;P style="margin-left: 20px;"&gt;In Ambari 2.2.1 how can I delete old Ambari Server Ops History? &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;I think that the history of tasks is stored in /var/lib/ambari-agent/data. &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Can I simply delete the folder contents?  &lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 01:04:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-you-delete-old-Ambari-Operations-History/m-p/131578#M47641</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2016-12-01T01:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you delete old Ambari Operations History</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-you-delete-old-Ambari-Operations-History/m-p/131579#M47642</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/228/wgonzalez.html"&gt;William Gonzalez&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Deleting whole "data" directory is not good. you might face the following kind of error. Because the "data" directory contains some files like "version" (which contains the agent version info), &lt;/P&gt;&lt;PRE&gt;OSError: [Errno 2] No such file or directory: '/var/lib/ambari-agent/data/status_command.json'
INFO 2016-11-30 10:08:54,666 StackVersionsFileHandler.py:107 - Creating stacks versions file at /var/lib/ambari-agent/data/current-stack
ERROR 2016-11-30 10:08:54,666 StackVersionsFileHandler.py:48 - Can't read versions file:
&lt;/PRE&gt;&lt;P&gt;However if you want to clean old actions then you can manually delete the following files from the  "/var/lib/ambari-agent/data" &lt;/P&gt;&lt;P&gt;-&amp;gt; command-*.json &lt;/P&gt;&lt;P&gt;-&amp;gt; errors-*.txt &lt;/P&gt;&lt;P&gt;-&amp;gt; output-*.txt&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 02:14:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-you-delete-old-Ambari-Operations-History/m-p/131579#M47642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-01T02:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you delete old Ambari Operations History</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-you-delete-old-Ambari-Operations-History/m-p/131580#M47643</link>
      <description>&lt;P&gt;Thanks. Yea I meant the contents (text files) not the directory. This makes sense. Thanks I will try that&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 02:28:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-you-delete-old-Ambari-Operations-History/m-p/131580#M47643</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2016-12-01T02:28:44Z</dc:date>
    </item>
  </channel>
</rss>

