How do I specify multiple libpath in oozie job?

2019-05-03 07:23发布

My oozie job uses 2 jars x.jar and y.jar and following is my job.properties file.

oozie.libpath=/lib
oozie.use.system.libpath=true

This works perfectly when both the jars are present at same location on HDFS at /lib/x.jar and /lib/y.jar

Now I have 2 jars placed at different locations /lib/1/x.jar and /lib/2/y.jar.
How can I re-write my code such that both the jars are used while running the map reduce job?

Note: I have already refernced the answer How to specify multiple jar files in oozie but, this does not solve my problem

1条回答
一纸荒年 Trace。
2楼-- · 2019-05-03 08:11

Found the answer at
http://blog.cloudera.com/blog/2014/05/how-to-use-the-sharelib-in-apache-oozie-cdh-5/
Turns out that I can specify multiple paths separated by comma.

查看更多
登录 后发表回答