atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject [1/2] incubator-atlas git commit: ATLAS-1676: update Hive hook to set hdfs_path.clusterName attribute
Date Tue, 21 Mar 2017 18:25:39 GMT
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 <madhan@apache.org>
Authored: Mon Mar 20 23:55:59 2017 -0700
Committer: Madhan Neethiraj <madhan@apache.org>
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;
     }
 


Mime
View raw message