Repository: incubator-atlas Updated Branches: refs/heads/master d6e40806f -> 1cc40fd9e
ATLAS-1676: update Hive hook to set hdfs_path.clusterName attribute Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/a127e26b Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/a127e26b Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/a127e26b Branch: refs/heads/master Commit: a127e26be618eeabcebdc0d4d3574da64b4bb745 Parents: d6e4080 Author: Madhan Neethiraj <[email protected]> Authored: Mon Mar 20 23:55:59 2017 -0700 Committer: Madhan Neethiraj <[email protected]> Committed: Mon Mar 20 23:55:59 2017 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a127e26b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java ---------------------------------------------------------------------- diff --git a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java index f27c301..d2d2fb5 100755 --- a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java +++ b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java @@ -584,6 +584,7 @@ public class HiveMetaStoreBridge { Path path = new Path(pathUri); ref.set(AtlasClient.NAME, Path.getPathWithoutSchemeAndAuthority(path).toString().toLowerCase()); ref.set(AtlasClient.REFERENCEABLE_ATTRIBUTE_NAME, pathUri); + ref.set(AtlasConstants.CLUSTER_NAME_ATTRIBUTE, clusterName); return ref; }
