[ 
https://issues.apache.org/jira/browse/SAMZA-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14715590#comment-14715590
 ] 

Navina Ramesh commented on SAMZA-619:
-------------------------------------

You can test host-affinity by:
Configuring Yarn Grid with the following properties:
{code}
  <property>
    <name>yarn.resourcemanager.scheduler.class</name>
    
<value>org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler</value>
  </property>
  <property>
    <name>yarn.scheduler.fair.continuous-scheduling-enabled</name>
    <value>true</value>
  </property>
  <property>
    <name>yarn.schedular.fair.locality-delay-node-ms</name>
    <value>5000</value>
  </property>
  <property>
    <name>yarn.schedular.fair.locality-delay-rack-ms</name>
    <value>5000</value>
  </property>
{code}

Configuring Sample Job with:
{code}
yarn.samza.host-affinity.enabled=true
{code}

> Modify Samza AppMaster to enable host-affinity
> ----------------------------------------------
>
>                 Key: SAMZA-619
>                 URL: https://issues.apache.org/jira/browse/SAMZA-619
>             Project: Samza
>          Issue Type: Task
>            Reporter: Navina Ramesh
>            Assignee: Navina Ramesh
>         Attachments: SAMZA-619-0.patch
>
>
> In order to enable host-affinity in YARN, the Samza App Master must include 
> the node list in the resource request. 
> The node list can be obtained from the Job Coordinator that provides the 
> container-to-host mapping (SAMZA-618)
> YARN must also be configured to use FairScheduler with continuous scheduling. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to