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

Review request for Ambari, Jaimin Jetly and Sumit Mohanty.


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


Repository: ambari


Description
-------

When Spark is added later to a cluster with YARN deployed then yarn-site is not 
modified.

If Spark is added to an existing cluster with YARN using HDP 2.4, then 
yarn-site:yarn.nodemanager.aux-services is not modified to include 
spark_shuffle.

Recommendation shown is :


Recommendations: 
{'yarn.timeline-service.entity-group-fs-store.group-id-plugin-classes': '', 
'yarn.nodemanager.container-executor.class': 
'org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor', 
'yarn.nodemanager.aux-services.spark_shuffle.class': 
'org.apache.spark.network.yarn.YarnShuffleService', 
'yarn.scheduler.minimum-allocation-vcores': '1', 
'yarn.scheduler.maximum-allocation-vcores': '1', 
'yarn.nodemanager.resource.memory-mb': '1024', 
'yarn.scheduler.minimum-allocation-mb': '341', 
'yarn.nodemanager.resource.cpu-vcores': '1', 'yarn.nodemanager.aux-services': 
'mapreduce_shuffle, 'yarn.scheduler.maximum-allocation-mb': '1024', 
'yarn.nodemanager.linux-container-executor.group': 'hadoop'}

But with SPARK added, it should be :

'yarn.nodemanager.aux-services': 'mapreduce_shuffle,spark_shuffle'


Fix : Added the YARN property (yarn.nodemanager.aux-services, 
yarn.nodemanager.aux-services.spark_shuffle.class) dependency on property 
(spark.yarn.queue).


Diffs
-----

  
ambari-server/src/main/resources/stacks/HDP/2.4/services/YARN/configuration/yarn-site.xml
 PRE-CREATION 

Diff: https://reviews.apache.org/r/42340/diff/


Testing
-------

- Tested the behavior. "spark_shuffle" gets shown in recommendations. 
Screenshot Attached.
   -> New cluster install
   -> Adding SPARK service after cluster install.
- Build done.


File Attachments
----------------

Screen Shot 2016-01-14 at 6.16.03 PM.png
  
https://reviews.apache.org/media/uploaded/files/2016/01/15/ebab3e5c-34f6-4c71-9cda-989a58661311__Screen_Shot_2016-01-14_at_6.16.03_PM.png
Screenshot 
  
https://reviews.apache.org/media/uploaded/files/2016/01/15/2ba2ac5b-c407-4ec1-aa6b-62b5f1b8cbcf__Screen_Shot_2016-01-15_at_1.14.13_PM.png


Thanks,

Swapan Shridhar

Reply via email to