how to include external jar file using PIG

前端 未结 3 2042
北海茫月
北海茫月 2020-12-17 18:53

When I run a mapreduce job using hadoop command, I use -libjars to setup my jar to the cache and the classpath. How to do something like this in PIG?

3条回答
  •  旧时难觅i
    2020-12-17 19:31

    An extension to zsxwing's answer.
    You can also specify multiple jar paths as

    pig -Dpig.additional.jars="/local/path/1/*:/local/path/2/*"
    

提交回复
热议问题