Repository: incubator-atlas
Updated Branches:
  refs/heads/0.8-incubating 599172026 -> c81597edf


ATLAS-1676: update Hive hook to set hdfs_path.clusterName attribute

(cherry picked from commit a127e26be618eeabcebdc0d4d3574da64b4bb745)


Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/b066a07b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/b066a07b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/b066a07b

Branch: refs/heads/0.8-incubating
Commit: b066a07b7c9b4f2a501010c5c499e66e470897ff
Parents: 5991720
Author: Madhan Neethiraj <[email protected]>
Authored: Mon Mar 20 23:55:59 2017 -0700
Committer: Madhan Neethiraj <[email protected]>
Committed: Tue Mar 21 11:26:01 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/b066a07b/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;
     }
 

Reply via email to