Jobs fail with mapper error 'Cannot run program "python" '

94 views
Skip to first unread message

Robert Schiemann

unread,
Jul 13, 2011, 3:01:45 PM7/13/11
to dumbo-user
I'm running CDH3U0 installed via SCM on Centos5 x64 with Python 2.6.6.
Streaming jobs using python scripts complete successfully. Using
dumbo, however, causes the mapping tasks to fail with the following
error: "java.io.IOException: Cannot run program "python":
java.io.IOException: error=2, No such file or directory". I've checked
on all of the machines, and the active user, root, hdfs, and mapred
all have access to the python binary and can start a python shell by
executing "python". I'm fairly sure it's a configuration issue, but
searching google and stackoverflow haven't yielded any results.

Thanks!
Robert

Norbert Burger

unread,
Jul 14, 2011, 5:20:54 PM7/14/11
to dumbo...@googlegroups.com
What does your shebang line (#!) in your python scripts look like?  Perhaps it refers to an interpreter location that doesn't exist?  I often use "#!/usr/bin/env python" in these cases.

Norbert


--
You received this message because you are subscribed to the Google Groups "dumbo-user" group.
To post to this group, send email to dumbo...@googlegroups.com.
To unsubscribe from this group, send email to dumbo-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dumbo-user?hl=en.


Reply all
Reply to author
Forward
0 new messages