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

Xi Wang commented on AMBARI-5197:
---------------------------------

Added a new property in tez-site.xml:
{code}<property>
    <name>tez.am.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>
    <description>
        Additional execution environment entries for tez. This is not an 
additive property. You must preserve the original value if
        you want to have access to native libraries.
    </description>
  </property>
{code}
The value of tez.am.env is exactly the same as mapreduce.admin.user.env.

> Ambari Installer: Set up tez.am.env to match mapreduce.admin.user.env
> ---------------------------------------------------------------------
>
>                 Key: AMBARI-5197
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5197
>             Project: Ambari
>          Issue Type: Task
>          Components: client
>    Affects Versions: 1.5.0
>            Reporter: Xi Wang
>            Assignee: Xi Wang
>             Fix For: 1.5.1
>
>         Attachments: AMBARI-5197.patch
>
>
> Add 'tez.am.env' property which has the same value as 
> 'mapreduce.admin.user.env'.
> This is to ensure LD_LIBRARY_PATH or its equivalent is setup correctly to 
> ensure native libs are loaded properly.



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

Reply via email to