Basically, ive been tasked with getting bash autocomplete working hadoop, but /usr/bin/hdfs is a script that actually sets a path and then calls the actual hdfs "binary".
Autocomplete works (there is a bug in there but it works) when calling /usr/lib/hadoop-hdfs/bin/hdfs directly.
So is there something I am missing? I have seen a wrapper script for aliases but it's the same problem. The only solution I can think of outside complete is turning the script into a symlink for the binary and setting the variable globally.
Seems wrong doing that though!