This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop.git
The following commit(s) were added to refs/heads/master by this push:
new ec5c918 HOP-2536 (#629)
ec5c918 is described below
commit ec5c9184bb9d526b9c137edf28f4648ee0c2c484
Author: Matt Casters <[email protected]>
AuthorDate: Thu Feb 18 10:12:44 2021 +0100
HOP-2536 (#629)
* HOP-2536 : Long lived docker container throws NPE
* HOP-2536 : Long lived docker container throws NPE
---
docker/resources/load-and-execute.sh | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/docker/resources/load-and-execute.sh
b/docker/resources/load-and-execute.sh
index 3352c30..48bef9b 100755
--- a/docker/resources/load-and-execute.sh
+++ b/docker/resources/load-and-execute.sh
@@ -45,9 +45,18 @@ write_server_config() {
HOP_SERVER_PASS=${HOP_SERVER_PASS:-cluster}
HOP_SERVER_MASTER=${HOP_SERVER_MASTER:-Y}
- log "Writing a hop-server config file to /tmp/hopserver.xml"
+ log "Writing a hop-server config file to "${HOP_SERVER_XML}
+
+ echo "<hop-server-config>" > ${HOP_SERVER_XML}
+ echo " <hop-server>" >> ${HOP_SERVER_XML}
+ echo " <name>Hop Server</name>" >> ${HOP_SERVER_XML}
+ echo " <hostname>0.0.0.0</hostname>" >> ${HOP_SERVER_XML}
+ echo " <port>8080</port>" >> ${HOP_SERVER_XML}
+ echo " <username>${HOP_SERVER_USER}</username>" >> ${HOP_SERVER_XML}
+ echo " <password>${HOP_SERVER_PASS}</password>" >> ${HOP_SERVER_XML}
+ echo " </hop-server>" >> ${HOP_SERVER_XML}
+ echo "</hop-server-config>" >> ${HOP_SERVER_XML}
- echo
"<slave_config><slaveserver><name>master</name><hostname>0.0.0.0</hostname><port>8080</port><master>${HOP_SERVER_MASTER}</master><username>${HOP_SERVER_USER}</username><password>${HOP_SERVER_PASS}</password></slaveserver></slave_config>"
> /tmp/hopserver.xml
}
# retrieve files from volume