[
https://issues.apache.org/jira/browse/HADOOP-11022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Allen Wittenauer updated HADOOP-11022:
--------------------------------------
Attachment: HADOOP-11022.patch
This patch implements the last bullet point:
a) Protects all of the *-env.sh files
b) Moves user defined functions into a new hadoop-user-functions.sh script
c) Moves the examples from hadoop-env.sh to hadoop-user-functions.sh.example
d) Fixes the log rotation example (HADOOP-11023)
The gotcha here is that this assumes that the *-env.sh vars are exported! This
is bw compat with previous versions of Hadoop. This isn't ideal, but...
> User replaced functions get lost 2-3 levels deep (e.g., sbin)
> -------------------------------------------------------------
>
> Key: HADOOP-11022
> URL: https://issues.apache.org/jira/browse/HADOOP-11022
> Project: Hadoop Common
> Issue Type: Bug
> Components: scripts
> Affects Versions: 3.0.0
> Reporter: Allen Wittenauer
> Priority: Critical
> Attachments: HADOOP-11022.patch
>
>
> The code that protects hadoop-env.sh from being re-executed is also causing
> functions that the user replaced to get overridden with the defaults. This
> typically happens when running commands that nest, such as most of the
> content in sbin. Just running stuff out of bin (e.g., bin/hdfs --daemon
> start namenode) does not trigger this behavior.
--
This message was sent by Atlassian JIRA
(v6.2#6252)