You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by pb...@apache.org on 2017/10/03 12:39:44 UTC
oozie git commit: OOZIE-3075 Follow-up on OOZIE-3054: create the lib
directory if it doesn't exist (pbacsko)
Repository: oozie
Updated Branches:
refs/heads/master e365bf9ce -> 7bda35784
OOZIE-3075 Follow-up on OOZIE-3054: create the lib directory if it doesn't exist (pbacsko)
Project: http://git-wip-us.apache.org/repos/asf/oozie/repo
Commit: http://git-wip-us.apache.org/repos/asf/oozie/commit/7bda3578
Tree: http://git-wip-us.apache.org/repos/asf/oozie/tree/7bda3578
Diff: http://git-wip-us.apache.org/repos/asf/oozie/diff/7bda3578
Branch: refs/heads/master
Commit: 7bda357849e1006f2cc6df58320f8905da2bd3b8
Parents: e365bf9
Author: Peter Bacsko <pb...@cloudera.com>
Authored: Tue Oct 3 14:39:38 2017 +0200
Committer: Peter Bacsko <pb...@cloudera.com>
Committed: Tue Oct 3 14:39:38 2017 +0200
----------------------------------------------------------------------
release-log.txt | 1 +
tools/src/main/java/org/apache/oozie/tools/OozieSharelibCLI.java | 4 ++++
2 files changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/oozie/blob/7bda3578/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index 604c072..600a732 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -1,5 +1,6 @@
-- Oozie 5.0.0 release (trunk - unreleased)
+OOZIE-3075 Follow-up on OOZIE-3054: create the lib directory if it doesn't exist (pbacsko)
OOZIE-3072 oozie.service.HadoopAccessorService.action.configurations should overwrite default values set in Hadoop's configuration files (gezapeti)
OOZIE-2963 Use net.hydromatic instead of org.pentaho aggdesigner-algorithmin pomfilesi (dbist13 via gezapeti)
OOZIE-3070 Remove references to org.mortbay.jetty (pbacsko)
http://git-wip-us.apache.org/repos/asf/oozie/blob/7bda3578/tools/src/main/java/org/apache/oozie/tools/OozieSharelibCLI.java
----------------------------------------------------------------------
diff --git a/tools/src/main/java/org/apache/oozie/tools/OozieSharelibCLI.java b/tools/src/main/java/org/apache/oozie/tools/OozieSharelibCLI.java
index c565d9d..dce1c55 100644
--- a/tools/src/main/java/org/apache/oozie/tools/OozieSharelibCLI.java
+++ b/tools/src/main/java/org/apache/oozie/tools/OozieSharelibCLI.java
@@ -160,10 +160,14 @@ public class OozieSharelibCLI {
WorkflowAppService lwas = services.get(WorkflowAppService.class);
HadoopAccessorService has = services.get(HadoopAccessorService.class);
Path dstPath = lwas.getSystemLibPath();
+
URI uri = new Path(hdfsUri).toUri();
Configuration fsConf = has.createConfiguration(uri.getAuthority());
FileSystem fs = FileSystem.get(uri, fsConf);
+ if (!fs.exists(dstPath)) {
+ fs.mkdirs(dstPath);
+ }
ECPolicyDisabler.tryDisableECPolicyForPath(fs, dstPath);
if (sharelibAction.equals(CREATE_CMD) || sharelibAction.equals(UPGRADE_CMD)){