You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by tl...@apache.org on 2020/08/11 01:59:38 UTC
[incubator-sdap-nexus] 15/28: fix arguments sent to spark driver,
add logging in cassandraproxy
This is an automated email from the ASF dual-hosted git repository.
tloubrieu pushed a commit to branch SDAP-268
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git
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