If a resource in job.jar start with ./, we cannot get it in the backend
-----------------------------------------------------------------------
Key: MAPREDUCE-3700
URL: https://issues.apache.org/jira/browse/MAPREDUCE-3700
Project: Hadoop Map/Reduce
Issue Type: Bug
Components: mrv2
Affects Versions: 0.23.0
Reporter: Daniel Dai
When testing Pig on hadoop23, I find if Pig register a script start with ./, it
fails. The same script success on 20.x clusters.
For example, here is a resource in job.jar:
jar tvf
/var/folders/Rq/RqKCrqeVEoahpTBMcvLV1E+++TI/-Tmp-/Job6041588317527904436.jar|grep
scriptingudf
1656 Thu Jan 19 15:49:42 PST 2012 ./libexec/python/scriptingudf.py
Here is the code we try to get the resource in map:
some_pig_object.class.getResourceAsStream("./libexec/python/scriptingudf.py");
--
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