I am kinda new to python programming so excuse me if i ask something for which the answer is obvious. I wanted to run a map reduce program so i install the mrjob package as needed. Now, when i try to run the sample program given:
from mrjob.job import MRJob
class MRWordFrequencyCount(MRJob):
def mapper(self, _, line):
yield "chars", len(line)
yield "words", len(line.split())
yield "lines", 1
def reducer(self, key, values):
yield key, sum(values)
if __name__ == '__main__':
MRWordFrequencyCount.run()
I get an error saying Win error 5 permission denied and then printing the path where app data is stored. What am i doing wrong here?