Hello,
Thanks for you help earlier. The issue was resolved by running /usr/local/anaconda/bin/python instead of just python. But now I am facing a below new error. Again this looks like a configuration issue if I am not wrong.
Error :
Scanning logs for probable cause of failure…
Can’t fetch history log; missing job ID
Can’t fetch task logs; missing application ID
Step 1 of 1 failed: Command ‘[’/bin/hadoop’, ‘jar’, ‘/usr/hdp/current/hadoop-mapreduce-client/hadoop-streaming.jar’, ‘-files’, ‘hdfs:///user/charantheking16954/tmp
/mrjob/udemy_python_map_reduce_get_ratingscount.charantheking16954.20181206.173037.007147/files/mrjob.zip#mrjob.zip,hdfs:///user/charantheking16954/tmp/mrjob/udemy
_python_map_reduce_get_ratingscount.charantheking16954.20181206.173037.007147/files/setup-wrapper.sh#setup-wrapper.sh,hdfs:///user/charantheking16954/tmp/mrjob/ude
my_python_map_reduce_get_ratingscount.charantheking16954.20181206.173037.007147/files/udemy_python_map_reduce_get_ratingscount.py#udemy_python_map_reduce_get_ratin
gscount.py’, ‘-input’, ‘hdfs:///user/charantheking16954/tmp/mrjob/udemy_python_map_reduce_get_ratingscount.charantheking16954.20181206.173037.007147/files/u.data’,
‘-output’, ‘hdfs:///user/charantheking16954/tmp/mrjob/udemy_python_map_reduce_get_ratingscount.charantheking16954.20181206.173037.007147/output’, ‘-mapper’, ‘sh -
ex setup-wrapper.sh python3 udemy_python_map_reduce_get_ratingscount.py --step-num=0 --mapper’, ‘-reducer’, ‘sh -ex setup-wrapper.sh python3 udemy_python_map_reduc
e_get_ratingscount.py --step-num=0 --reducer’]’ returned non-zero exit status 256.
Can you please help here?
Thanks,
Sai