Reply
Highlighted
New Contributor
Posts: 1
Registered: ‎02-15-2019
Accepted Solution

does sharelib jars needs to be explicitly included in java action in <file>?

does sharelib jars like 

  1. hive-exec
  2. hive-common
  3. hive-jdbc
  4. hive-serivce
  5. libthrift

needs to be included explicitly in java action <file> tag or those are auto included?

From this document i see they should be auto included if i am not wrong? how-to-use-the-sharelib-in-apache-oozie-cdh-5

 

Posts: 1,825
Kudos: 406
Solutions: 292
Registered: ‎07-31-2013

Re: does sharelib jars needs to be explicitly included in java action in <file>?

The share-lib in Oozie is modular, so it only adds necessary jars for each
action type. The java action is the most generic of all action types, and
therefore receives none of the other action type dependencies (such as
hive, pig, distcp, spark, etc.).

The article you've linked to carries an answer to the question of 'how do I
further include jars from action type X into my action type Y', which I've
quoted below for convenience:

"""
For example, if you want all Pig actions in one of your Workflows to
include the HCatalog ShareLib, you would add
oozie.action.sharelib.for.pig=pig,hcatalog to your job.properties.
"""

So in your case, you may want to try and add:

oozie.action.sharelib.for.java=java,hive
Announcements