Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10998

Fix bash tab completion code to work

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.6.0
    • scripts
    • None
    • Hadoop 2.0.0-cdh4.2.1

    Description

      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.

      Attachments

        1. HADOOP-10998.patch
          4 kB
          Jim Hester

        Issue Links

          Activity

            People

              Jim Hester Jim Hester
              Jim Hester Jim Hester
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: