使用Python时出现字数错误

使用Python时出现字数错误,python,hadoop,Python,Hadoop,我正在用下面的命令在hadoop中运行单词计数程序 hadoop jar /usr/lib/hadoop-0.20-mapreduce/contrib/streaming/hadoop-streaming.jar -file /home/Hadoop/Python/mapper.py -mapper mapper.py -file /home/Hadoop/Python/reducer.py -reducer reducer.py -input "/Hadoop/Hive.txt" -outp

我正在用下面的命令在hadoop中运行单词计数程序

hadoop jar /usr/lib/hadoop-0.20-mapreduce/contrib/streaming/hadoop-streaming.jar -file /home/Hadoop/Python/mapper.py -mapper mapper.py  -file /home/Hadoop/Python/reducer.py -reducer reducer.py -input "/Hadoop/Hive.txt" -output "/Hadoop/output.txt"
下面是导致程序失败的错误

原因:java.io.IOException:无法运行程序 “/var/lib/hadoop thread/cache/thread/nm local dir/usercache/root/appcache/application_1427776730247_0008/container_1427776730247_0008_01_000006//mapper.py”: 错误=2,没有这样的文件或目录

我认为这些是创建的运行时目录,Thread拥有该目录的读写权限

我是否需要手动更改这些目录的权限并将mapper和reducer文件放在那里