Ambari
  1. Ambari
  2. AMBARI-3031

Set mapreduce.admin.user.env in mapred-site.xml

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: ambari-server
    • Labels:
      None

      Description

      MR Job with Compression Codec can fail because of LD_LIBRARY_PATH missing in mapred-site.xml.

      mapred-site.xml sample
      <property>
          <name>mapreduce.admin.user.env</name>
          <value>LD_LIBRARY_PATH=/usr/lib/hadoop/lib/native:/usr/lib/hadoop/lib/native/`$JAVA_HOME/bin/java -d32 -version &amp;&gt; /dev/null;if [ $? -eq 0 ]; then echo Linux-i386-32; else echo Linux-amd64-64;fi`</value>
        </property>
      
      1. AMBARI-3031_2.patch
        14 kB
        Srimanth Gunturi
      2. AMBARI-3031_All.patch
        6 kB
        Srimanth Gunturi
      3. AMBARI-3031.patch
        2 kB
        Sumit Mohanty

        Activity

        Hide
        Srimanth Gunturi added a comment -

        Problem was that Ambari UI was putting invalid XML characters as values. When they get persisted to say yarn-site.xml, YARN trips trying to parse an invalid XML file.

        The fix is that Ambari UI now escapes all invalid XML characters as documented in http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML.

        Users can enter either the escaped or unescaped values. Both would work fine.

        Show
        Srimanth Gunturi added a comment - Problem was that Ambari UI was putting invalid XML characters as values. When they get persisted to say yarn-site.xml, YARN trips trying to parse an invalid XML file. The fix is that Ambari UI now escapes all invalid XML characters as documented in http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML . Users can enter either the escaped or unescaped values. Both would work fine.
        Hide
        Jaimin D Jetly added a comment -

        +1 for the patch.

        Show
        Jaimin D Jetly added a comment - +1 for the patch.
        Hide
        Sumit Mohanty added a comment -

        Verifying the change ...

        Show
        Sumit Mohanty added a comment - Verifying the change ...

          People

          • Assignee:
            Srimanth Gunturi
            Reporter:
            Sumit Mohanty
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development