Not able to see Kafka command files after updating .bash_profile file . pressing tab after kafka not showing anything


#1

[abhig60bd@gw01 ~]$ vi /bash_profile
[abhig60bd@gw01 ~]$ cat .bash_profile

.bash_profile

Get the aliases and functions

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export KAFKA_HOME=/usr/hdp/2.5.0.0-1245/kafka
PATH=$PATH:$KAFKA_HOME/bin

export PATH
[abhig60bd@gw01 ~]$ kafka


#2

It should work fine. Please check the screenshot below.


#3

As suggested by Durga Viswanatha Raju Gadiraju in one of his videos in order to launch from anywhere even after logging out and logging back in … and after adding the KAFKA_HOME directory to the PATH variable in .profile file after typing just the word kafka and hitting tab we should be able to see the kafka command files.
This is not happening for me even after modifying my .profile file. Please check why it is not working as mentioned in the video.


#4

It is working. Please find the screenshot for reference.


#5

When I type kafka after updating the bash profile I am getting the following error below.Please help me
[nsaikrishnacse@gw01 ~]$ kafka
Usage: /usr/bin/kafka {start|stop|status|clean}


#6

@Sai_Krishna Hit tab twice after typing kafka to get output like above.

kafka<tab>

**No space after kafka