Hello everyone.

I send you this mail because I have a question related to the java actions
in oozie and to the sharelibs.

Here is my Use Case :
1. I have a simple workflow xml with a java action
2. I have a job properties with the property "oozie.use.system.libpath=true"
3. I have the following oozie sharelibs :
###
# hdfs dfs -ls /user/oozie/share/lib/
Found 1 items
drwxr-xr-x   - oozie hdfs          0 2016-03-14 18:30
/user/oozie/share/lib/lib_20151124100459

# hdfs dfs -ls /user/oozie/share/lib/*
Found 11 items
drwxr-xr-x   - oozie hdfs          0 2015-11-24 10:05
/user/oozie/share/lib/lib_20151124100459/distcp
drwxr-xr-x   - oozie hdfs          0 2016-03-14 18:32
/user/oozie/share/lib/lib_20151124100459/hbase
drwxr-xr-x   - oozie hdfs          0 2015-11-24 10:05
/user/oozie/share/lib/lib_20151124100459/hcatalog
drwxr-xr-x   - oozie hdfs          0 2015-11-24 10:05
/user/oozie/share/lib/lib_20151124100459/hive
drwxr-xr-x   - oozie hdfs          0 2015-11-24 10:05
/user/oozie/share/lib/lib_20151124100459/hive2
drwxr-xr-x   - oozie hdfs          0 2015-11-24 10:05
/user/oozie/share/lib/lib_20151124100459/mapreduce-streaming
drwxr-xr-x   - oozie hdfs          0 2015-11-24 10:05
/user/oozie/share/lib/lib_20151124100459/oozie
drwxr-xr-x   - oozie hdfs          0 2015-11-24 10:05
/user/oozie/share/lib/lib_20151124100459/pig
-rwxr-xr-x   3 oozie hdfs       1396 2015-11-24 10:05
/user/oozie/share/lib/lib_20151124100459/sharelib.properties
drwxr-xr-x   - oozie hdfs          0 2015-11-24 10:05
/user/oozie/share/lib/lib_20151124100459/spark
drwxr-xr-x   - oozie hdfs          0 2015-11-24 10:05
/user/oozie/share/lib/lib_20151124100459/sqoop
###

My questions are :
Q1 - When I execute my oozie workflow containing my java action, which
libraries from the sharelibs are available for my java project ? All ?
Nothing ?

Q2 - Do I have to add in my workflow.xml the property
"oozie.action.sharelib.for.java" with specific values like
hcatalog,hive,pig,hbase ?

Thank you in advance for your help !

Best regards.

Morgrim

Reply via email to