Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.20.205.0
-
None
-
None
Description
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