<?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: Stack Advisor - how to use it? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222687#M69769</link>
    <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/11713/grabowski14.html" nodeid="11713" target="_blank"&gt;@Mateusz Grabowski&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can make the required changes in stack_advisor.py under (/var/lib/ambari-server/resources/stacks/HDP/{HDP version}/services/stack_advisor.py&lt;/P&gt;&lt;P&gt;For testing, I have changed a line in ( /var/lib/ambari-server/resources/stacks/HDP/2.5/services/stack_advisor.py.&lt;/P&gt;&lt;P&gt;I have hardcoded the port no in atlas.rest.address to 12233 and restarted the ambari server.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39833-screen-shot-2017-10-17-at-93633-pm.png" style="width: 2236px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15661iFAC2FFD4E66D3933/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39833-screen-shot-2017-10-17-at-93633-pm.png" alt="39833-screen-shot-2017-10-17-at-93633-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see in the below screenshot, it got reflected in the UI.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39834-screen-shot-2017-10-17-at-93900-pm.png" style="width: 1770px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15662i9CFC69CAA36C48D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39834-screen-shot-2017-10-17-at-93900-pm.png" alt="39834-screen-shot-2017-10-17-at-93900-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;All you have to do is make the changes you want in stack_advisor.py , restart ambari-server. We need not run the file manually.&lt;/P&gt;&lt;P&gt;Note : Ambari agents will cache these files. So you should make the same change in (/var/lib/ambari-agent/cache/stacks/HDP/{HDP version}/services/stack_advisor.py) as well.&lt;/P&gt;&lt;P&gt;You can check this &lt;A href="https://community.hortonworks.com/questions/46592/how-can-i-change-a-config-during-the-setup-of-a-ne.html" rel="nofollow noopener noreferrer" target="_blank"&gt;link&lt;/A&gt; for some more info&lt;/P&gt;&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 02:02:51 GMT</pubDate>
    <dc:creator>asirna</dc:creator>
    <dc:date>2019-08-18T02:02:51Z</dc:date>
    <item>
      <title>Stack Advisor - how to use it?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222684#M69766</link>
      <description>&lt;P&gt;Hi. I have a question regarding Stack Advisor script. I want to tune my cluster - change YARN, Tez and Hive configuration files. I can use hdp-configuration-utils.py script, but it is too simple. I read that there is stack and service advisors which can give me recommendations. My question is - can I use stack advisor script after HDP installation or I should not use it, cause Ambari uses it during HDP installation only? And if I can use it - how can I do this?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 16:28:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222684#M69766</guid>
      <dc:creator>grabowski14</dc:creator>
      <dc:date>2017-10-17T16:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Stack Advisor - how to use it?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222685#M69767</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11713/grabowski14.html" nodeid="11713"&gt;@Mateusz Grabowski&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Below threads might help you&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/How-To+Define+Stacks+and+Services#How-ToDefineStacksandServices-StackAdvisor" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/How-To+Define+Stacks+and+Services#How-ToDefineStacksandServices-StackAdvisor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/5836/yarnmr-configuration-hdp-configuration-utils-or-am.html" target="_blank"&gt;https://community.hortonworks.com/questions/5836/yarnmr-configuration-hdp-configuration-utils-or-am.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 21:43:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222685#M69767</guid>
      <dc:creator>nshetty</dc:creator>
      <dc:date>2017-10-17T21:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Stack Advisor - how to use it?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222686#M69768</link>
      <description>&lt;P&gt;I saw both of this sites. But my question is - how I can run stack-advisor.py script? Can I just run simple:&lt;/P&gt;&lt;PRE&gt;python stack-advisor.py&lt;/PRE&gt;&lt;P&gt;or I should configure something before? Where I can find a file with recommendations?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 22:05:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222686#M69768</guid>
      <dc:creator>grabowski14</dc:creator>
      <dc:date>2017-10-17T22:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stack Advisor - how to use it?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222687#M69769</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/11713/grabowski14.html" nodeid="11713" target="_blank"&gt;@Mateusz Grabowski&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can make the required changes in stack_advisor.py under (/var/lib/ambari-server/resources/stacks/HDP/{HDP version}/services/stack_advisor.py&lt;/P&gt;&lt;P&gt;For testing, I have changed a line in ( /var/lib/ambari-server/resources/stacks/HDP/2.5/services/stack_advisor.py.&lt;/P&gt;&lt;P&gt;I have hardcoded the port no in atlas.rest.address to 12233 and restarted the ambari server.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39833-screen-shot-2017-10-17-at-93633-pm.png" style="width: 2236px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15661iFAC2FFD4E66D3933/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39833-screen-shot-2017-10-17-at-93633-pm.png" alt="39833-screen-shot-2017-10-17-at-93633-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see in the below screenshot, it got reflected in the UI.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="39834-screen-shot-2017-10-17-at-93900-pm.png" style="width: 1770px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15662i9CFC69CAA36C48D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="39834-screen-shot-2017-10-17-at-93900-pm.png" alt="39834-screen-shot-2017-10-17-at-93900-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;All you have to do is make the changes you want in stack_advisor.py , restart ambari-server. We need not run the file manually.&lt;/P&gt;&lt;P&gt;Note : Ambari agents will cache these files. So you should make the same change in (/var/lib/ambari-agent/cache/stacks/HDP/{HDP version}/services/stack_advisor.py) as well.&lt;/P&gt;&lt;P&gt;You can check this &lt;A href="https://community.hortonworks.com/questions/46592/how-can-i-change-a-config-during-the-setup-of-a-ne.html" rel="nofollow noopener noreferrer" target="_blank"&gt;link&lt;/A&gt; for some more info&lt;/P&gt;&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:02:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222687#M69769</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2019-08-18T02:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stack Advisor - how to use it?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222688#M69770</link>
      <description>&lt;P&gt;You can use the below snippet. But you need to run stack_advisor once using normal flow under ambari server&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/scripts/stack_advisor.py recommend-configurations /var/run/ambari-server/stack-recommendations/1/hosts.json /var/run/ambari-server/stack-recommendations/1/services.json&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 17:45:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stack-Advisor-how-to-use-it/m-p/222688#M69770</guid>
      <dc:creator>aman_poonia_29</dc:creator>
      <dc:date>2018-02-14T17:45:48Z</dc:date>
    </item>
  </channel>
</rss>

