Created on 08-30-2014 11:14 PM - edited 08-30-2014 11:15 PM
I was able to solve the problem. I have to specify "python" as well in the mapper like
sudo -u hdfs hadoop jar /usr/lib/hadoop-0.20-mapreduce/contrib/streaming/hadoop-streaming.jar -input /sample/cite75_99.txt -output /foo -mapper 'python RandomSample.py 10' -file RandomSale.py -numReduceTasks 1