<?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: List all the installed mPacks in Ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/215217#M69128</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I'm sorry, my question was not so clear. I was trying to list all the installed mPacks in ambari which we usually install using&lt;/P&gt;&lt;P&gt;ambari-server install-mpack &amp;lt;args&amp;gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2017 13:29:30 GMT</pubDate>
    <dc:creator>asirna</dc:creator>
    <dc:date>2017-10-06T13:29:30Z</dc:date>
    <item>
      <title>List all the installed mPacks in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/215215#M69126</link>
      <description>&lt;P&gt;How can I list all the installed Mpacks in ambari. I want to install few mPacks and uninstall mPack asks for the mpack name. I want to check all the installed mpacks and uninstall few. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 13:18:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/215215#M69126</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-06T13:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: List all the installed mPacks in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/215216#M69127</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14200/asirna.html" nodeid="14200"&gt;@Aditya Sirna&lt;/A&gt;&lt;P&gt;Try listing the installed packages using yum command:&lt;BR /&gt;yum list installed | grep mpack&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 13:25:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/215216#M69127</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2017-10-06T13:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: List all the installed mPacks in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/215217#M69128</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/5019/ssubhas.html" nodeid="5019"&gt;@Sindhu&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I'm sorry, my question was not so clear. I was trying to list all the installed mPacks in ambari which we usually install using&lt;/P&gt;&lt;P&gt;ambari-server install-mpack &amp;lt;args&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 13:29:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/215217#M69128</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-06T13:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: List all the installed mPacks in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/215218#M69129</link>
      <description>&lt;P&gt;Found out the solution. This is not a single line command though&lt;/P&gt;&lt;P&gt;1) Find out the mpack.staging.path by running&lt;/P&gt;&lt;PRE&gt;cat /etc/ambari-server/conf/ambari.properties | grep -i mpack &lt;/PRE&gt;&lt;P&gt;2) Go to the mpack.staging.path directory (default is : /var/lib/ambari-server/resources/mpacks )&lt;/P&gt;&lt;PRE&gt;cd /var/lib/ambari-server/resources/mpacks&lt;/PRE&gt;&lt;P&gt;3) Iterate through all the directories in the mpack staging directory excpet the "cache" directory and read the mpack.json in each directory&lt;/P&gt;&lt;P&gt;The mpack.json has the name of the mPack.&lt;/P&gt;&lt;P&gt;You can write a small script to iterate through the directories and print all the mpack names&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2017 12:23:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/215218#M69129</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-08T12:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: List all the installed mPacks in Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/300625#M69130</link>
      <description>&lt;P&gt;brutal I know but a oneliner&lt;/P&gt;&lt;P&gt;cd $(cat /etc/ambari-server/conf/ambari.properties | grep -i mpack|awk -F'=' '{print$2}') ; ls -l|grep -v cache |grep -v mpacks_replay.log |grep -v total |awk '{print$9}' |xargs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last bit is handy if you to create a ruby fact out of the data&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 16:45:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/List-all-the-installed-mPacks-in-Ambari/m-p/300625#M69130</guid>
      <dc:creator>scooke</dc:creator>
      <dc:date>2020-07-30T16:45:26Z</dc:date>
    </item>
  </channel>
</rss>

