Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Order of jars in mapper classpath when job.addFileToClassPath used

Highlighted

Order of jars in mapper classpath when job.addFileToClassPath used

Explorer

I am running into dependency issue with pig and guava, I am adding jars with job.addFileToClassPath

 

printing classpath from the mapper, the order of jars is not same for all mappers, depends on which one is front of the classpath, If pig jar front, those mappers are failing as it will use old version of guava, other mappers are successful as guava jar front of the classpath.

 

how to keep the same order of jars in the classpath for all mappers? 

Don't have an account?
Coming from Hortonworks? Activate your account here