When Pig is running in distributed (HDFS) mode, you can pass additional jars to it from command-line using the following syntax, so that you don’t have to explicitly using the REGISTER call
pig -Dpig.additional.jars=jar1.jar:jar2.jar -f pigfile.pig
But when I do the same thing while running in local mode, it fails
pig -x local -Dpig.additional.jars=jar1.jar:jar2.jar -f pigfile.pig
Does anyone know how to register additional jars while running Pig in local mode?
Properties should be passed before any Pig-specific options: