Sqoop command not running in slave node

Installed sqoop in master node and slave node…tried to run sqoop command in slave node but got the error JDK not set.But I have set Java home path in bashrc and hadoop-env.sh file.stiil getting error…Same sqoop command is working for masternode but not in slave node