hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramya Sunil (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-3122) -libjars with streaming does not create symlink in the cwd of task
Date Thu, 29 Sep 2011 17:07:45 GMT
-libjars with streaming does not create symlink in the cwd of task
------------------------------------------------------------------

                 Key: MAPREDUCE-3122
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3122
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: contrib/streaming
    Affects Versions: 0.20.205.0
            Reporter: Ramya Sunil


When libjars option is used with streaming, the symlink to the jar file is not created in
the working dir of the task. Any map/reduce tasks which uses this jar fails with NoClassDefFoundError

For e.g:

$ hadoop jar hadoop-streaming.jar -libjars /home/ramya/HelloWorld.jar -input input.txt -output
Out -mapper "mapper.sh" -reducer NONE -file /home/ramya/mapper.sh

$ cat /home/ramya/mapper.sh
#!/bin/sh

cat &> /dev/null
java -cp HelloWorld.jar HelloWorld

$ java -cp /home/ramya/HelloWorld.jar HelloWorld
Hello World

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message