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/06/20 13:15:45 UTC
[metron] branch master updated: METRON-2142 Install solar schema as
metron user (MohanDV via nickwallen) closes apache/metron#1432
This is an automated email from the ASF dual-hosted git repository.
nickallen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/metron.git
The following commit(s) were added to refs/heads/master by this push:
new 09bbdf3 METRON-2142 Install solar schema as metron user (MohanDV via nickwallen) closes apache/metron#1432
09bbdf3 is described below
commit 09bbdf30e1ecef88b67755d12d407a39ce44536c
Author: MohanDV <mo...@gmail.com>
AuthorDate: Thu Jun 20 09:03:50 2019 -0400
METRON-2142 Install solar schema as metron user (MohanDV via nickwallen) closes apache/metron#1432
---
.../METRON/CURRENT/package/scripts/indexing_commands.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/indexing_commands.py b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/indexing_commands.py
index d557da5..a75a918 100755
--- a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/indexing_commands.py
+++ b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/indexing_commands.py
@@ -205,9 +205,9 @@ class IndexingCommands:
Logger.info("Installing Solr schemas")
if self.__params.security_enabled:
metron_security.kinit(self.__params.kinit_path_local,
- self.__params.solr_keytab_path,
- self.__params.solr_principal_name,
- self.__params.solr_user)
+ self.__params.metron_keytab_path,
+ self.__params.metron_principal_name,
+ execute_user=self.__params.metron_user)
try:
commands = IndexingCommands(params)
@@ -221,7 +221,7 @@ class IndexingCommands:
Execute(
cmd.format(params.metron_home, collection_name),
- user=self.__params.solr_user)
+ user=self.__params.metron_user)
return True
except Exception as e:
@@ -236,9 +236,9 @@ class IndexingCommands:
Logger.info("Deleting Solr schemas")
if self.__params.security_enabled:
metron_security.kinit(self.__params.kinit_path_local,
- self.__params.solr_keytab_path,
- self.__params.solr_principal_name,
- self.__params.solr_user)
+ self.__params.metron_keytab_path,
+ self.__params.metron_principal_name,
+ execute_user=self.__params.metron_user)
commands = IndexingCommands(params)
for collection_name in commands.get_solr_schemas():
@@ -251,7 +251,7 @@ class IndexingCommands:
Execute(
cmd.format(params.metron_home, collection_name),
- user=self.__params.solr_user)
+ user=self.__params.metron_user)
def start_batch_indexing_topology(self, env):
Logger.info('Starting ' + self.__batch_indexing_topology)