- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Stack Advisor - how to use it?
- Labels:
-
Apache Ambari
-
Apache Tez
-
Apache YARN
Created ‎10-17-2017 09:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Created on ‎10-17-2017 04:12 PM - edited ‎08-17-2019 07:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can make the required changes in stack_advisor.py under (/var/lib/ambari-server/resources/stacks/HDP/{HDP version}/services/stack_advisor.py
For testing, I have changed a line in ( /var/lib/ambari-server/resources/stacks/HDP/2.5/services/stack_advisor.py.
I have hardcoded the port no in atlas.rest.address to 12233 and restarted the ambari server.
As you can see in the below screenshot, it got reflected in the UI.
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.
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.
You can check this link for some more info
Hope this helps 🙂
Thanks,
Aditya
Created ‎10-17-2017 02:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎10-17-2017 03:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I saw both of this sites. But my question is - how I can run stack-advisor.py script? Can I just run simple:
python stack-advisor.py
or I should configure something before? Where I can find a file with recommendations?
Created on ‎10-17-2017 04:12 PM - edited ‎08-17-2019 07:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can make the required changes in stack_advisor.py under (/var/lib/ambari-server/resources/stacks/HDP/{HDP version}/services/stack_advisor.py
For testing, I have changed a line in ( /var/lib/ambari-server/resources/stacks/HDP/2.5/services/stack_advisor.py.
I have hardcoded the port no in atlas.rest.address to 12233 and restarted the ambari server.
As you can see in the below screenshot, it got reflected in the UI.
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.
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.
You can check this link for some more info
Hope this helps 🙂
Thanks,
Aditya
Created ‎02-14-2018 09:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use the below snippet. But you need to run stack_advisor once using normal flow under ambari server
/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
