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

Bash tab completion support

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.19.0
    • scripts
    • None
    • Reviewed
    • Adds a new contrib, bash-tab-completion, which enables bash tab completion for the bin/hadoop script. See the README file in the contrib directory for the installation.

    Description

      The attached Bash script adds support for tab completion of most arguments to the main Hadoop script (bin/hadoop). Namely, it allows tab completion of all the command names, subcommands for the fs, dfsadmin, job, namenode and pipe commands, arguments of the jar command and most arguments to the fs subcommands (completing local and dfs paths as appropriate).

      The file can be dropped into /etc/bash_completion.d/ on Debian-like distros, and it should then start working the next time Bash is started.

      Attachments

        1. hadoop-bash-tab-completion
          5 kB
          Chris Smith
        2. hadoop-bash-tab-completion
          4 kB
          Chris Smith

        Issue Links

          Activity

            People

              md87 Chris Smith
              md87 Chris Smith
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: