我正在本地系统上用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'
检查环境变量
mapreduce_map_input_file
是否已设置。你知道吗在终端中键入
echo $mapreduce_map_input_file
。如果不设置,终端就不会打印出任何内容。你知道吗相关问题 更多 >
编程相关推荐