[
https://issues.apache.org/jira/browse/HADOOP-10998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Allen Wittenauer updated HADOOP-10998:
--------------------------------------
Resolution: Fixed
Fix Version/s: 2.6.0
3.0.0
Status: Resolved (was: Patch Available)
+1, I'll commit this to branch-2 and trunk. Thanks!
For future generations:
The bash tab completion code still has a lot of problems. Ideally, we'd fix
them all with one patch that would be a rewrite of the current code. (In fact,
I wouldn't recommend people actually use this feature at all.) But at least
this patch moves the code forward in a positive way. There is still a lot of
work to be done.
> Bash tab completion support for newer versions of hadoop
> --------------------------------------------------------
>
> Key: HADOOP-10998
> URL: https://issues.apache.org/jira/browse/HADOOP-10998
> Project: Hadoop Common
> Issue Type: Improvement
> Components: scripts
> Environment: Hadoop 2.0.0-cdh4.2.1
> Reporter: Jim Hester
> Priority: Trivial
> Fix For: 3.0.0, 2.6.0
>
> Attachments: HADOOP-10998.patch
>
>
> The included version of bash completion has not been updated in almost two
> years and does not work correctly with more recent versions of Hadoop.
> The command substitutions in the script were using backticks, which were
> interpolating variables before they were executed and breaking the script.
> In particular the awk commands were breaking due to this interpolation.
> The attached patch changes the backticks to {{$(command)}} style for command
> substitution and updates the script to work properly with newer versions of
> hadoop.
> I tested the script using {{zsh 5.0.5}}, {{zsh 4.3.10]}, {{bash-4.1.2}} and
> {{bash-3.2}}. Hadoop versions tested were cloudera version
> {{2.0.0-cdh4.2.1}} and briefly Apache {{2.5.0}}.
--
This message was sent by Atlassian JIRA
(v6.2#6252)