You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by ea...@apache.org on 2020/07/27 20:18:18 UTC

[incubator-sdap-nexus] branch bug_fixes updated: fix arguments sent to spark driver, add logging in cassandraproxy

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

eamonford pushed a commit to branch bug_fixes
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git


The following commit(s) were added to refs/heads/bug_fixes by this push:
     new 67145df  fix arguments sent to spark driver, add logging in cassandraproxy
67145df is described below

commit 67145df4c53d0c222e46cc434b1fbd7132b35ef4
Author: Eamon Ford <ea...@jpl.nasa.gov>
AuthorDate: Mon Jul 27 13:18:08 2020 -0700

    fix arguments sent to spark driver, add logging in cassandraproxy
---
 data-access/nexustiles/dao/CassandraProxy.py | 3 +++
 helm/templates/webapp.yml                    | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/data-access/nexustiles/dao/CassandraProxy.py b/data-access/nexustiles/dao/CassandraProxy.py
index 2189efd..9a38e29 100644
--- a/data-access/nexustiles/dao/CassandraProxy.py
+++ b/data-access/nexustiles/dao/CassandraProxy.py
@@ -161,6 +161,9 @@ class CassandraProxy(object):
         self.__cass_protocol_version = config.getint("cassandra", "protocol_version")
         self.__cass_dc_policy = config.get("cassandra", "dc_policy")
 
+        logger.info("Setting cassandra host to " + self.__cass_url)
+        logger.info("Setting cassandra username to " + self.__cass_username)
+
         try:
             self.__cass_port = config.getint("cassandra", "port")
         except NoOptionError:
diff --git a/helm/templates/webapp.yml b/helm/templates/webapp.yml
index 8efd3ec..2921bb6 100644
--- a/helm/templates/webapp.yml
+++ b/helm/templates/webapp.yml
@@ -12,7 +12,10 @@ spec:
   imagePullPolicy: IfNotPresent
   mainApplicationFile: local:///incubator-sdap-nexus/analysis/webservice/webapp.py
   arguments:
-    - "--cassandra-host={{ .Release.Name }}-cassandra --cassandra-username=cassandra --cassandra-password=cassandra --solr-host={{ .Release.Name }}-solr-svc:8983"
+    - --cassandra-host={{ .Release.Name }}-cassandra
+    - --cassandra-username=cassandra
+    - --cassandra-password=cassandra
+    - --solr-host={{ .Release.Name }}-solr-svc:8983
   sparkVersion: "2.4.4"
   restartPolicy:
     type: OnFailure