It says hadoop command not found, it appears that the search path is not set to find hadoop related commands. So instead of:
NUM=`hadoop fs -count /var/CRS/processing/SDP`
NUM=`/full_path_to_hadoop_binaries/hadoop fs -count /var/CRS/processing/SDP`
Wherein, full path to hadoop binaries is the actual path where hadoop binaries are located.
you can try:
Also run process.sh with sh -x process.sh which will give step by step information on what script is doing.