You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Madhuvanthi Radhakrishnan <mr...@hortonworks.com> on 2017/03/16 00:21:26 UTC

Review Request 57672: Add a new property to yarn-site.xml yarn.log.server.web-service.url

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57672/
-----------------------------------------------------------

Review request for Ambari, Alejandro Fernandez, Jayush Luniya, Robert Nettleton, and Sumit Mohanty.


Bugs: AMBARI-20469
    https://issues.apache.org/jira/browse/AMBARI-20469


Repository: ambari


Description
-------

Add a new property to yarn-site.xml yarn.log.server.web-service.url


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java e604598 
  ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-site.xml 4b97148 
  ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py 0968d8b 


Diff: https://reviews.apache.org/r/57672/diff/1/


Testing
-------

1. Fresh Install : HDP 2.6
Install Yarn. Check if the yarn.log.server.web-service.url is appropriately set i.e if policy = HTTP_ONLY, then the value is http://${yarn.resourcemanager.webapp.address}/ws/v1/applicationhistory
Change the policy to HTTPS_ONLY, the UI will show a warning on Save Configs to change the yarn.log.server.web-service.url to https://${yarn.resourcemanager.webapp.https.address}/ws/v1/applicationhistory

2. Export Blueprint
yarn.log.server.web-service.url = "http://%HOSTGROUP::host_group_2%:8188/ws/v1/applicationhistory",

3. Deploy a cluster using Blueprint
config_recommendation_strategy = ONLY_STACK_DEFAULTS_APPLY
"yarn.log.server.web-service.url": "http://c6402.ambari.apache.org:8188/ws/v1/applicationhistory",
where:
yarn.timeline-service.webapp.address": "c6402.ambari.apache.org:8188",


Thanks,

Madhuvanthi Radhakrishnan


Re: Review Request 57672: Add a new property to yarn-site.xml yarn.log.server.web-service.url

Posted by Sumit Mohanty <sm...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57672/#review169087
-----------------------------------------------------------


Ship it!




Ship It!

- Sumit Mohanty


On March 16, 2017, 12:21 a.m., Madhuvanthi Radhakrishnan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57672/
> -----------------------------------------------------------
> 
> (Updated March 16, 2017, 12:21 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, Robert Nettleton, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-20469
>     https://issues.apache.org/jira/browse/AMBARI-20469
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Add a new property to yarn-site.xml yarn.log.server.web-service.url
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java e604598 
>   ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-site.xml 4b97148 
>   ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py 0968d8b 
> 
> 
> Diff: https://reviews.apache.org/r/57672/diff/1/
> 
> 
> Testing
> -------
> 
> 1. Fresh Install : HDP 2.6
> Install Yarn. Check if the yarn.log.server.web-service.url is appropriately set i.e if policy = HTTP_ONLY, then the value is http://${yarn.resourcemanager.webapp.address}/ws/v1/applicationhistory
> Change the policy to HTTPS_ONLY, the UI will show a warning on Save Configs to change the yarn.log.server.web-service.url to https://${yarn.resourcemanager.webapp.https.address}/ws/v1/applicationhistory
> 
> 2. Export Blueprint
> yarn.log.server.web-service.url = "http://%HOSTGROUP::host_group_2%:8188/ws/v1/applicationhistory",
> 
> 3. Deploy a cluster using Blueprint
> config_recommendation_strategy = ONLY_STACK_DEFAULTS_APPLY
> "yarn.log.server.web-service.url": "http://c6402.ambari.apache.org:8188/ws/v1/applicationhistory",
> where:
> yarn.timeline-service.webapp.address": "c6402.ambari.apache.org:8188",
> 
> 
> Thanks,
> 
> Madhuvanthi Radhakrishnan
> 
>


Re: Review Request 57672: Add a new property to yarn-site.xml yarn.log.server.web-service.url

Posted by Madhuvanthi Radhakrishnan <mr...@hortonworks.com>.

> On March 16, 2017, 3:01 p.m., Robert Nettleton wrote:
> > Patch looks fine to me, although it would be good to add a unit test for the change to the Blueprint config processor. 
> > 
> > I'd also recommend one additional manual test:  Deploy a Blueprint with the default configuration recommendation strategy (which is "NEVER_APPLY" when not set in the Cluster Creation template).  This test will verify that the property updater functions properly and sets the expected host name in this property even when the StackAdvisor is not consulted, which is the default behavior. 
> > 
> > Thanks for providing this patch!

Tested with NEVER_APPLY and verified that it still replaces the %HOST correctly.


> On March 16, 2017, 3:01 p.m., Robert Nettleton wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
> > Lines 2492 (patched)
> > <https://reviews.apache.org/r/57672/diff/1/?file=1665879#file1665879line2492>
> >
> >     It would probably be a good idea to add a unit test to verify that this property updater is registered as expected.

I am providing an addendum patch and attaching it to the apache jira itself. Thank you


- Madhuvanthi


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57672/#review169159
-----------------------------------------------------------


On March 16, 2017, 12:21 a.m., Madhuvanthi Radhakrishnan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57672/
> -----------------------------------------------------------
> 
> (Updated March 16, 2017, 12:21 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, Robert Nettleton, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-20469
>     https://issues.apache.org/jira/browse/AMBARI-20469
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Add a new property to yarn-site.xml yarn.log.server.web-service.url
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java e604598 
>   ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-site.xml 4b97148 
>   ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py 0968d8b 
> 
> 
> Diff: https://reviews.apache.org/r/57672/diff/1/
> 
> 
> Testing
> -------
> 
> 1. Fresh Install : HDP 2.6
> Install Yarn. Check if the yarn.log.server.web-service.url is appropriately set i.e if policy = HTTP_ONLY, then the value is http://${yarn.resourcemanager.webapp.address}/ws/v1/applicationhistory
> Change the policy to HTTPS_ONLY, the UI will show a warning on Save Configs to change the yarn.log.server.web-service.url to https://${yarn.resourcemanager.webapp.https.address}/ws/v1/applicationhistory
> 
> 2. Export Blueprint
> yarn.log.server.web-service.url = "http://%HOSTGROUP::host_group_2%:8188/ws/v1/applicationhistory",
> 
> 3. Deploy a cluster using Blueprint
> config_recommendation_strategy = ONLY_STACK_DEFAULTS_APPLY
> "yarn.log.server.web-service.url": "http://c6402.ambari.apache.org:8188/ws/v1/applicationhistory",
> where:
> yarn.timeline-service.webapp.address": "c6402.ambari.apache.org:8188",
> 
> 
> Thanks,
> 
> Madhuvanthi Radhakrishnan
> 
>


Re: Review Request 57672: Add a new property to yarn-site.xml yarn.log.server.web-service.url

Posted by Robert Nettleton <rn...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57672/#review169159
-----------------------------------------------------------


Fix it, then Ship it!




Patch looks fine to me, although it would be good to add a unit test for the change to the Blueprint config processor. 

I'd also recommend one additional manual test:  Deploy a Blueprint with the default configuration recommendation strategy (which is "NEVER_APPLY" when not set in the Cluster Creation template).  This test will verify that the property updater functions properly and sets the expected host name in this property even when the StackAdvisor is not consulted, which is the default behavior. 

Thanks for providing this patch!


ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
Lines 2492 (patched)
<https://reviews.apache.org/r/57672/#comment241483>

    It would probably be a good idea to add a unit test to verify that this property updater is registered as expected.


- Robert Nettleton


On March 16, 2017, 12:21 a.m., Madhuvanthi Radhakrishnan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57672/
> -----------------------------------------------------------
> 
> (Updated March 16, 2017, 12:21 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, Robert Nettleton, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-20469
>     https://issues.apache.org/jira/browse/AMBARI-20469
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Add a new property to yarn-site.xml yarn.log.server.web-service.url
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java e604598 
>   ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-site.xml 4b97148 
>   ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py 0968d8b 
> 
> 
> Diff: https://reviews.apache.org/r/57672/diff/1/
> 
> 
> Testing
> -------
> 
> 1. Fresh Install : HDP 2.6
> Install Yarn. Check if the yarn.log.server.web-service.url is appropriately set i.e if policy = HTTP_ONLY, then the value is http://${yarn.resourcemanager.webapp.address}/ws/v1/applicationhistory
> Change the policy to HTTPS_ONLY, the UI will show a warning on Save Configs to change the yarn.log.server.web-service.url to https://${yarn.resourcemanager.webapp.https.address}/ws/v1/applicationhistory
> 
> 2. Export Blueprint
> yarn.log.server.web-service.url = "http://%HOSTGROUP::host_group_2%:8188/ws/v1/applicationhistory",
> 
> 3. Deploy a cluster using Blueprint
> config_recommendation_strategy = ONLY_STACK_DEFAULTS_APPLY
> "yarn.log.server.web-service.url": "http://c6402.ambari.apache.org:8188/ws/v1/applicationhistory",
> where:
> yarn.timeline-service.webapp.address": "c6402.ambari.apache.org:8188",
> 
> 
> Thanks,
> 
> Madhuvanthi Radhakrishnan
> 
>


Re: Review Request 57672: Add a new property to yarn-site.xml yarn.log.server.web-service.url

Posted by Sumit Mohanty <sm...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57672/#review169088
-----------------------------------------------------------


Ship it!




Can you add the changes needed in trunk for HDP-3.0.0 support?

- Sumit Mohanty


On March 16, 2017, 12:21 a.m., Madhuvanthi Radhakrishnan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/57672/
> -----------------------------------------------------------
> 
> (Updated March 16, 2017, 12:21 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, Robert Nettleton, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-20469
>     https://issues.apache.org/jira/browse/AMBARI-20469
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Add a new property to yarn-site.xml yarn.log.server.web-service.url
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java e604598 
>   ambari-server/src/main/resources/stacks/HDP/2.6/services/YARN/configuration/yarn-site.xml 4b97148 
>   ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py 0968d8b 
> 
> 
> Diff: https://reviews.apache.org/r/57672/diff/1/
> 
> 
> Testing
> -------
> 
> 1. Fresh Install : HDP 2.6
> Install Yarn. Check if the yarn.log.server.web-service.url is appropriately set i.e if policy = HTTP_ONLY, then the value is http://${yarn.resourcemanager.webapp.address}/ws/v1/applicationhistory
> Change the policy to HTTPS_ONLY, the UI will show a warning on Save Configs to change the yarn.log.server.web-service.url to https://${yarn.resourcemanager.webapp.https.address}/ws/v1/applicationhistory
> 
> 2. Export Blueprint
> yarn.log.server.web-service.url = "http://%HOSTGROUP::host_group_2%:8188/ws/v1/applicationhistory",
> 
> 3. Deploy a cluster using Blueprint
> config_recommendation_strategy = ONLY_STACK_DEFAULTS_APPLY
> "yarn.log.server.web-service.url": "http://c6402.ambari.apache.org:8188/ws/v1/applicationhistory",
> where:
> yarn.timeline-service.webapp.address": "c6402.ambari.apache.org:8188",
> 
> 
> Thanks,
> 
> Madhuvanthi Radhakrishnan
> 
>