You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Daniel Horak (JIRA)" <ji...@apache.org> on 2014/05/20 14:44:37 UTC

[jira] [Commented] (AMBARI-5825) Unescaped special characters ('&' and '>') in mapred-site.xml (HDP 2.0.6.GlusterFS stack)

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

Daniel Horak commented on AMBARI-5825:
--------------------------------------

[~erinaboyd] Have you seen this issue?

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