You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Krisztian Horvath <kr...@sequenceiq.com> on 2014/07/29 11:05:30 UTC

modify hadoop-env.sh

Hi everyone,

Does anyone know how can I overwrite a hadoop-env property, namely the HADOOP_OPTS? All I’ve found so far is an issue https://issues.apache.org/jira/browse/AMBARI-1535 which is not resolved, yet. If I manually edit the file Ambari resets it when I try to start the services. Maybe I could pick up the issue, but no target version set, yet.

Br,
Krisz



Re: modify hadoop-env.sh

Posted by Krisztian Horvath <kr...@sequenceiq.com>.
Hi Jeff,

Thank you for your answer. I’ll try it.

Br,
Krisz


On July 29, 2014 at 2:19:49 PM, Jeff Sposetti (jeff@hortonworks.com) wrote:

A better JIRA to follow is:  
https://issues.apache.org/jira/browse/AMBARI-5802 which will cover exposing  
-env.sh files for editing like other configs in Ambari.  

As for how to modify hadoop-env.sh in the meantime...  

1. On the Ambari Server, browse to the stack definition (in this case, HDP  
2.0, which is also inherited by HDP 2.1 Stack):  

/var/lib/ambari-server/resources/stacks/HDP/2.0.6/hooks/before-START/templates  

2. Modify the hadoop-env.sh.j2 template  

3. Save and restart the Ambari Server. This will cause the Stack definition  
to be re-loaded by the agents.  




On Tue, Jul 29, 2014 at 5:05 AM, Krisztian Horvath <  
krisztian.horvath@sequenceiq.com> wrote:  

> Hi everyone,  
>  
> Does anyone know how can I overwrite a hadoop-env property, namely the  
> HADOOP_OPTS? All I’ve found so far is an issue  
> https://issues.apache.org/jira/browse/AMBARI-1535 which is not resolved,  
> yet. If I manually edit the file Ambari resets it when I try to start the  
> services. Maybe I could pick up the issue, but no target version set, yet.  
>  
> Br,  
> Krisz  
>  
>  
>  

--  
CONFIDENTIALITY NOTICE  
NOTICE: This message is intended for the use of the individual or entity to  
which it is addressed and may contain information that is confidential,  
privileged and exempt from disclosure under applicable law. If the reader  
of this message is not the intended recipient, you are hereby notified that  
any printing, copying, dissemination, distribution, disclosure or  
forwarding of this communication is strictly prohibited. If you have  
received this communication in error, please contact the sender immediately  
and delete it from your system. Thank You.  

Re: modify hadoop-env.sh

Posted by Jeff Sposetti <je...@hortonworks.com>.
A better JIRA to follow is:
https://issues.apache.org/jira/browse/AMBARI-5802 which will cover exposing
-env.sh files for editing like other configs in Ambari.

As for how to modify hadoop-env.sh in the meantime...

1. On the Ambari Server, browse to the stack definition (in this case, HDP
2.0, which is also inherited by HDP 2.1 Stack):

/var/lib/ambari-server/resources/stacks/HDP/2.0.6/hooks/before-START/templates

2. Modify the hadoop-env.sh.j2 template

3. Save and restart the Ambari Server. This will cause the Stack definition
to be re-loaded by the agents.




On Tue, Jul 29, 2014 at 5:05 AM, Krisztian Horvath <
krisztian.horvath@sequenceiq.com> wrote:

> Hi everyone,
>
> Does anyone know how can I overwrite a hadoop-env property, namely the
> HADOOP_OPTS? All I’ve found so far is an issue
> https://issues.apache.org/jira/browse/AMBARI-1535 which is not resolved,
> yet. If I manually edit the file Ambari resets it when I try to start the
> services. Maybe I could pick up the issue, but no target version set, yet.
>
> Br,
> Krisz
>
>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.