Repository: atlas
Updated Branches:
  refs/heads/master db6d783a8 -> e6625a6c3


ATLAS-2559: HBase Atlas Hook doesn't create relationship between namespace and 
tables

Signed-off-by: Sarath Subramanian <[email protected]>


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

Branch: refs/heads/master
Commit: e6625a6c3af827435a786ba3ce8b6ee03ad7a71c
Parents: db6d783
Author: rmani <[email protected]>
Authored: Tue Apr 24 14:27:10 2018 -0700
Committer: Sarath Subramanian <[email protected]>
Committed: Tue Apr 24 14:27:10 2018 -0700

----------------------------------------------------------------------
 addons/models/1000-Hadoop/1060-hbase_model.json | 31 ++++++++++++++++++--
 ...hbase_table_column_family_add_attribute.json |  8 -----
 2 files changed, 29 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/e6625a6c/addons/models/1000-Hadoop/1060-hbase_model.json
----------------------------------------------------------------------
diff --git a/addons/models/1000-Hadoop/1060-hbase_model.json 
b/addons/models/1000-Hadoop/1060-hbase_model.json
index acf4ff5..ec8dd4a 100644
--- a/addons/models/1000-Hadoop/1060-hbase_model.json
+++ b/addons/models/1000-Hadoop/1060-hbase_model.json
@@ -6,7 +6,7 @@
         {
             "name": "hbase_namespace",
             "superTypes": [
-                "DataSet"
+                "Asset"
             ],
             "typeVersion": "1.0",
             "attributeDefs": [
@@ -52,6 +52,14 @@
             "typeVersion": "1.1",
             "attributeDefs": [
                 {
+                    "name": "namespace",
+                    "typeName": "hbase_namespace",
+                    "cardinality": "SINGLE",
+                    "isIndexable": false,
+                    "isOptional": true,
+                    "isUnique": false
+                },
+                {
                     "name": "uri",
                     "typeName": "string",
                     "cardinality": "SINGLE",
@@ -140,6 +148,25 @@
     ],
     "relationshipDefs": [
         {
+            "name": "hbase_namespace_tables",
+            "typeVersion": "1.0",
+            "relationshipCategory": "COMPOSITION",
+            "endDef1": {
+                "type": "hbase_namespace",
+                "name": "tables",
+                "isContainer": true,
+                "cardinality": "SET"
+            },
+            "endDef2": {
+                "type": "hbase_table",
+                "name": "namespace",
+                "isContainer": false,
+                "cardinality": "SINGLE",
+                "isLegacyAttribute": true
+            },
+            "propagateTags": "NONE"
+        },
+        {
             "name": "hbase_table_column_families",
             "typeVersion": "1.0",
             "relationshipCategory": "COMPOSITION",
@@ -180,4 +207,4 @@
             "propagateTags": "NONE"
         }
     ]
-}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/atlas/blob/e6625a6c/addons/models/1000-Hadoop/patches/004-hbase_table_column_family_add_attribute.json
----------------------------------------------------------------------
diff --git 
a/addons/models/1000-Hadoop/patches/004-hbase_table_column_family_add_attribute.json
 
b/addons/models/1000-Hadoop/patches/004-hbase_table_column_family_add_attribute.json
index 905a376..80291f3 100644
--- 
a/addons/models/1000-Hadoop/patches/004-hbase_table_column_family_add_attribute.json
+++ 
b/addons/models/1000-Hadoop/patches/004-hbase_table_column_family_add_attribute.json
@@ -8,14 +8,6 @@
       "params": null,
       "attributeDefs": [
         {
-          "name": "namespace",
-          "typeName": "hbase_namespace",
-          "cardinality": "SINGLE",
-          "isIndexable": false,
-          "isOptional": true,
-          "isUnique": false
-        },
-        {
           "name": "parameters",
           "typeName": "map<string,string>",
           "cardinality": "SINGLE",

Reply via email to