如何在oozie作业中指定多个libpath? [英] How do I specify multiple libpath in oozie job?

查看:923
本文介绍了如何在oozie作业中指定多个libpath?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的oozie作业使用2个jar x.jar y.jar ,以下是我的job.properties文件。

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

当两个罐子在HDFS的 /lib/x.jar /lib/y.jar



现在我有两个放置在不同位置的罐子 /lib/1/x.jar / lib / 2 /y.jar

如何重写我的代码,以便在运行map reduce作业时使用这两个jar?


注意:我已经参考了答案如何在oozie中指定多个jar文件但是,这并不能解决我的问题 解决方案

br />
http://blog.cloudera.com/blog/2014/05/how-to-use-the-sharelib -in-apache-oozie-cdh-5 /

原来我可以指定多个路径,用逗号分隔。


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

解决方案

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.

这篇关于如何在oozie作业中指定多个libpath?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆