"type" and "which" programs coming up empty for programs on the path Here is an example of a program that is in the path, find-able by tab / command-completion and accessible but not found by which: 

kafka-



However running which kafka or type kafka comes up empty handed



Why would these programs not be working properly?
As you can see in your first screenshot, there is no application called and ‘kafka-‘.  Therefore, it cannot look up its path. 

Try, for example, ‘which kafka-configs’ and it will show you the path.