Gour Saha created SLIDER-891:
--------------------------------

             Summary: Add ability to set Slider AM launch environment during 
cluster create/start
                 Key: SLIDER-891
                 URL: https://issues.apache.org/jira/browse/SLIDER-891
             Project: Slider
          Issue Type: Bug
          Components: appmaster, client
            Reporter: Gour Saha


It might be necessary to set env variables like *LD_LIBRARY_PATH* after YARN 
creates the AM container and before the Slider AM process is started. It should 
be possible to append to such variables from the client side, when the 
application instance is created or started from a stopped state. 

This is beneficial in a cluster which undergoes upgrade and most likely has 
newer versions of native libraries. 

All applications which were started prior to the upgrade, should be able to 
continue to use the same versions of native libraries it was started with, if 
Slider AM failover occurs after the upgrade. The failover AM should not get the 
newer versions of the native libraries just because the cluster underwent an 
upgrade.

The variable {{slider.am.launch.env}} will be created which can be set in 
slider-client.xml with a format as below -

{noformat}
<property>
  <name>slider.am.launch.env</name>
  
<value>LD_LIBRARY_PATH=/usr/hadoop/lib/native:/usr/hadoop/lib/native/Linux-amd64-64,PATH=/usr/hadoop/bin</value>
</property>
{noformat}

Multiple variables should be comma {{,}} separated. Each variable's name and 
value should be separated by {{=}} character.



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

Reply via email to