You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2016/08/21 22:15:46 UTC
ambari git commit: AMBARI-18223. Atlas hook impl jars should be
copied instead of the top level atlas hive hook jars for oozie hive action
(Venkat Ranganathan via alejandro)
Repository: ambari
Updated Branches:
refs/heads/branch-2.4 4a4c4f68c -> 3bb302ad3
AMBARI-18223. Atlas hook impl jars should be copied instead of the top level atlas hive hook jars for oozie hive action (Venkat Ranganathan via alejandro)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3bb302ad
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3bb302ad
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3bb302ad
Branch: refs/heads/branch-2.4
Commit: 3bb302ad3f96ec56670551379d8f7bd946c023b3
Parents: 4a4c4f6
Author: Alejandro Fernandez <af...@hortonworks.com>
Authored: Sun Aug 21 15:19:52 2016 -0700
Committer: Alejandro Fernandez <af...@hortonworks.com>
Committed: Sun Aug 21 15:19:52 2016 -0700
----------------------------------------------------------------------
.../OOZIE/4.0.0.2.0/package/scripts/oozie.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/3bb302ad/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py b/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
index 620de92..0736ae9 100644
--- a/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
+++ b/ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie.py
@@ -379,8 +379,10 @@ def copy_atlas_hive_hook_to_dfs_share_lib(upgrade_type=None, upgrade_direction=N
"contain directory {atlas_hive_hook_dir}"))
return
- num_files = len([name for name in os.listdir(atlas_hive_hook_dir) if os.path.exists(os.path.join(atlas_hive_hook_dir, name))])
- Logger.info("Found %d files/directories inside Atlas Hive hook directory %s"% (num_files, atlas_hive_hook_dir))
+ atlas_hive_hook_impl_dir = os.path.join(atlas_hive_hook_dir, "atlas-hive-plugin-impl")
+
+ num_files = len([name for name in os.listdir(atlas_hive_hook_impl_dir) if os.path.exists(os.path.join(atlas_hive_hook_impl_dir, name))])
+ Logger.info("Found %d files/directories inside Atlas Hive hook impl directory %s"% (num_files, atlas_hive_hook_impl_dir))
# This can return over 100 files, so take the first 5 lines after "Available ShareLib"
# Use -oozie http(s):localhost:{oozie_server_admin_port}/oozie as oozie-env does not export OOZIE_URL
@@ -395,12 +397,12 @@ def copy_atlas_hive_hook_to_dfs_share_lib(upgrade_type=None, upgrade_direction=N
raise Fail("Could not parse Hive sharelib from output.")
Logger.info("Parsed Hive sharelib = %s and will attempt to copy/replace %d files to it from %s" %
- (hive_sharelib_dir, num_files, atlas_hive_hook_dir))
+ (hive_sharelib_dir, num_files, atlas_hive_hook_impl_dir))
params.HdfsResource(hive_sharelib_dir,
type="directory",
action="create_on_execute",
- source=atlas_hive_hook_dir,
+ source=atlas_hive_hook_impl_dir,
user=params.hdfs_user,
owner=params.oozie_user,
group=params.hdfs_user,