I have followed each and everthing as mentioned in the above documents.
everything is Ok, now I try try to check the cluster by executing the command
mpiuser@master:~$ mpiexec -f hosts -n 3 /home/mpiuser/bin/cpi
mpiexec was unable to launch the specified application as it could not find an executable: