In my mapper code I am using a 3rd party library of JTS.jar. I need to put it on the distributed cache of hadoop so that all nodes can access it. I found at this link that -libjars can be used to do this.
I now execute my code using
hadoop jar -libjars JTS.jar my_jar.jar classname inputFiles outputFiles.
but this doesn’t work. Any suggestion on how to fix this?
In a different effort, I tried to follow this link.
1) I copied the Jar library to hadoop using:
2) I then modified my Configuration as below:
3) The tutorial then says “Use the cached file in mapper” so my mapper looks like this:
Despite doing all these, The code still fails by throwing “Class bout found”. Any help?