ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Horak (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-5825) Unescaped special characters ('&' and '>') in mapred-site.xml (HDP 2.0.6.GlusterFS stack)
Date Tue, 20 May 2014 12:38:39 GMT
Daniel Horak created AMBARI-5825:
------------------------------------

             Summary: Unescaped special characters ('&' and '>') in mapred-site.xml
(HDP 2.0.6.GlusterFS stack)
                 Key: AMBARI-5825
                 URL: https://issues.apache.org/jira/browse/AMBARI-5825
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 1.5.1
         Environment: RHEL 6.4, HDP 2.1 (ambari-server-1.5.1.110-1.noarch)

            Reporter: Daniel Horak


All YARN/MapReduce components failed to start on 2.0.6.GlusterFS stack (on HDP 2.1 with ambari-server-1.5.1.110-1.noarch),
because /etc/hadoop/conf{,.empty}/mapred-site.xml contains characters '&' and '>' (not
encoded as xml entities) for mapreduce.admin.user.env property.

{noformat}
# xmllint /etc/hadoop/conf/mapred-site.xml
  /etc/hadoop/conf/mapred-site.xml:105: parser error : xmlParseEntityRef: no name
  adoop/lib/native:/usr/lib/hadoop/lib/native/`$JAVA_HOME/bin/java -d32 -version &
{noformat}

Related part in mapred-site.xml:
{noformat}
   <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 &> /dev/null;if [ $? -eq 0 ]; then echo Linux-i386-32; else echo Linux-amd64-64;fi`</value>
  </property>
{noformat}

Same part in properly configured mapred-site.xml (HDP 2.1 with 2.1 stack-HDFS or HDP 2.0.6
with GlusterFS and ambari 1.4.4) contains properly escaped string (&amp;&gt;):
{noformat}
    <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>
{noformat}




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message