You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metron.apache.org by ni...@apache.org on 2019/10/30 17:01:09 UTC

[metron] branch feature/METRON-2088-support-hdp-3.1 updated: METRON-2305 Unable to Add Enrichment Coprocessor with Kerberos (MohanDV via nickwallen) closes apache/metron#1549

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

nickallen pushed a commit to branch feature/METRON-2088-support-hdp-3.1
in repository https://gitbox.apache.org/repos/asf/metron.git


The following commit(s) were added to refs/heads/feature/METRON-2088-support-hdp-3.1 by this push:
     new 018e90f  METRON-2305 Unable to Add Enrichment Coprocessor with Kerberos (MohanDV via nickwallen) closes apache/metron#1549
018e90f is described below

commit 018e90fe664295afeed391f678849a76a92919fe
Author: MohanDV <mo...@gmail.com>
AuthorDate: Wed Oct 30 13:00:42 2019 -0400

    METRON-2305 Unable to Add Enrichment Coprocessor with Kerberos (MohanDV via nickwallen) closes apache/metron#1549
---
 .../METRON/CURRENT/package/scripts/enrichment_commands.py             | 3 ++-
 .../METRON/CURRENT/package/scripts/enrichment_master.py               | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/enrichment_commands.py b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/enrichment_commands.py
index 68769bb..0b99a70 100755
--- a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/enrichment_commands.py
+++ b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/enrichment_commands.py
@@ -268,7 +268,7 @@ class EnrichmentCommands:
                   self.__params.hbase_principal_name,
                   execute_user=self.__params.hbase_user)
 
-        cmd = "echo \"grant '{0}', 'RW', '{1}'\" | hbase shell -n"
+        cmd = "echo \"grant '{0}', 'CRW', '{1}'\" | hbase shell -n"
         add_enrichment_acl_cmd = cmd.format(self.__params.metron_user, self.__params.enrichment_hbase_table)
         Execute(add_enrichment_acl_cmd,
                 tries=3,
@@ -278,6 +278,7 @@ class EnrichmentCommands:
                 user=self.__params.hbase_user
                 )
 
+        cmd = "echo \"grant '{0}', 'RW', '{1}'\" | hbase shell -n"
         add_enrichment_list_acl_cmd = cmd.format(self.__params.metron_user, self.__params.enrichment_list_hbase_table)
         Execute(add_enrichment_list_acl_cmd,
                 tries=3,
diff --git a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/enrichment_master.py b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/enrichment_master.py
index 15d08e1..66a48a5 100755
--- a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/enrichment_master.py
+++ b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/enrichment_master.py
@@ -69,10 +69,10 @@ class Enrichment(Script):
             commands.init_kafka_acls()
         if not commands.is_hbase_configured():
             commands.create_hbase_tables()
-        if not commands.is_hbase_coprocessor_configured():
-            commands.load_enrichment_coprocessor()
         if params.security_enabled and not commands.is_hbase_acl_configured():
             commands.set_hbase_acls()
+        if not commands.is_hbase_coprocessor_configured():
+            commands.load_enrichment_coprocessor()
         if not commands.is_maxmind_configured():
             commands.init_maxmind()