Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-891

Add ability to set Slider AM launch environment during cluster create/start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Slider 0.80
    • Slider 0.81
    • appmaster, client
    • None

    Description

      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 -

      <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>
      

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

      Attachments

        Activity

          People

            gsaha Gour Saha
            gsaha Gour Saha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: