You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ab...@apache.org on 2020/04/09 23:32:38 UTC

[ranger] branch master updated: RANGER-2788: Fix schema-registry servicedef with correct values of id and itemIds

This is an automated email from the ASF dual-hosted git repository.

abhay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a998ed  RANGER-2788: Fix schema-registry servicedef with correct values of id and itemIds
0a998ed is described below

commit 0a998ed76fab3c7898a5d36b0a560f9723c19a75
Author: Abhay Kulkarni <ab...@apache.org>
AuthorDate: Thu Apr 9 16:29:16 2020 -0700

    RANGER-2788: Fix schema-registry servicedef with correct values of id and itemIds
---
 .../service-defs/ranger-servicedef-schema-registry.json  | 15 ++++++++-------
 distro/src/main/assembly/admin-web.xml                   | 16 ++++++++++++++++
 2 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/agents-common/src/main/resources/service-defs/ranger-servicedef-schema-registry.json b/agents-common/src/main/resources/service-defs/ranger-servicedef-schema-registry.json
index 3997cc2..6ef253e 100644
--- a/agents-common/src/main/resources/service-defs/ranger-servicedef-schema-registry.json
+++ b/agents-common/src/main/resources/service-defs/ranger-servicedef-schema-registry.json
@@ -1,4 +1,5 @@
 {
+  "id": 202,
   "name": "schema-registry",
   "implClass": "org.apache.ranger.services.schema.registry.RangerServiceSchemaRegistry",
   "label": "Schema Registry",
@@ -7,7 +8,7 @@
   [
 
     {
-      "itemId": 0,
+      "itemId": 1,
       "name": "registry-service",
       "type": "string",
       "level": 10,
@@ -29,7 +30,7 @@
     },
 
     {
-      "itemId": 1,
+      "itemId": 2,
       "name": "schema-group",
       "type": "string",
       "level": 10,
@@ -51,7 +52,7 @@
     },
 
     {
-      "itemId": 22,
+      "itemId": 3,
       "name": "schema-metadata",
       "type": "string",
       "level": 20,
@@ -75,7 +76,7 @@
 
 
     {
-      "itemId": 32,
+      "itemId": 4,
       "name": "schema-branch",
       "type": "string",
       "level": 30,
@@ -98,7 +99,7 @@
     },
 
     {
-      "itemId": 42,
+      "itemId": 5,
       "name": "schema-version",
       "type": "string",
       "level": 40,
@@ -120,7 +121,7 @@
     },
 
     {
-      "itemId": 5,
+      "itemId": 6,
       "name": "serde",
       "type": "string",
       "level": 10,
@@ -242,7 +243,7 @@
   [
 
     {
-      "itemId":4,
+      "itemId":1,
       "name":"ip-range",
       "evaluator":"org.apache.ranger.plugin.conditionevaluator.RangerIpMatcher",
       "evaluatorOptions":{
diff --git a/distro/src/main/assembly/admin-web.xml b/distro/src/main/assembly/admin-web.xml
index b433ab1..bae71b6 100644
--- a/distro/src/main/assembly/admin-web.xml
+++ b/distro/src/main/assembly/admin-web.xml
@@ -479,6 +479,22 @@
         </includes>
       </binaries>
     </moduleSet>
+    <moduleSet>
+      <useAllReactorProjects>true</useAllReactorProjects>
+      <includes>
+        <include>org.apache.ranger:ranger-schema-registry-plugin</include>
+      </includes>
+      <binaries>
+        <outputDirectory>/ews/webapp/WEB-INF/classes/ranger-plugins/schema-registry</outputDirectory>
+        <includeDependencies>true</includeDependencies>
+        <unpack>false</unpack>
+        <directoryMode>755</directoryMode>
+        <fileMode>644</fileMode>
+        <includes>
+          <include>org.apache.ranger:ranger-schema-registry-plugin</include>
+        </includes>
+      </binaries>
+    </moduleSet>
   </moduleSets>
 
   <fileSets>