Reputation: 53
I wrote UDF that uses some external libraries as jackson-databird etc...how can I specify where should pig looks for these external libraries?
Thanks
Upvotes: 0
Views: 175
Reputation: 724
You can specify the additional Jars using the syntax -
pig -Dpig.additional.jars="xxx.jar:yyy.jar" -f script.pig
having a jar with dependencies might cause problems incase the packaged dependencies and the cluster installed dependencies are not compatible. This will also make your program future proof, i would assume.
Upvotes: 1