Upstream zsh doesn't have a completion function for hadoop, so your choices are to find someone who wrote one for hadoop or to write your own.
If you are new to writing completion functions, ft wrote a nice introduction here.
The fastest way to learn in my opinion is to read and understand existing functions. since hadoop have subcommands, relevant existing functions are _zfs, _btrfs, _git and other commands that have the concept of subcommands
. You can view them with $EDITOR $^fpath/_zfs(N)
the zsh userguide also have a chapter dedicated to how completion works here, and man 1 zshcompsys
will quickly become your best friend.
And it is called completion
, there is nothing auto
about it :P