[英]Error while map reduce program in python
I am executing the Map reduce program in python on local system and getting the below error:我在本地系统上的 python 中执行 Map reduce 程序并收到以下错误:
Password:Traceback (most recent call last):
File "./wordcount_mapper.py", line 7, in <module>
filename = os.environ["mapreduce_map_input_file"]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'mapreduce_map_input_file'
Check your environment variable mapreduce_map_input_file
to see if it is set.检查您的环境变量
mapreduce_map_input_file
以查看它是否已设置。
Type echo $mapreduce_map_input_file
in your terminal.在终端中输入
echo $mapreduce_map_input_file
。 If it's not set the terminal won't print out anything.如果未设置,终端将不会打印任何内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.