Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Conversation

@xunliu
Copy link
Member

@xunliu xunliu commented Jan 4, 2020

What is this PR for?

The submarine server cannot access the database due to the following issues

  1. Mysql configuration file is missing parameters in submairne-site.xml.
  2. In the pom file submarine project, without introducing mysql connector jar package

What type of PR is it?

[Bug Fix | Improvement ]

Todos

  • - Task

What is the Jira issue?

How should this be tested?

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

bin/common.sh Outdated
if type wget >/dev/null 2>&1; then
wget ${MYSQL_JAR_URL} -P "${BIN}/../lib" --no-check-certificate
elif type curl >/dev/null 2>&1; then
curl -o "${BIN}/../lib/mysql-connector-java-${MYSQL_VERSION}.jar" ${MYSQL_JAR_URL}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use "${SUBMARINE_HOME}/lib/mysql-connector-java-${MYSQL_VERSION}.jar"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good question.
But using the SUBMARINE_HOME variable, you must define the path in submarine-env.sh.
I think it may be easier to use SUBMARINE_HOME in the future.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUBMARINE_HOME already define in common.sh

export SUBMARINE_HOME="$(cd "${FWDIR}/.."; pwd)"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, thanks for your reminder.

@pingsutw
Copy link
Member

pingsutw commented Jan 4, 2020

Thanks @liuxunorg for the contribution, LGTM

@xunliu
Copy link
Member Author

xunliu commented Jan 4, 2020

@pingsutw Thank you help me review code.
Will merge if no more comments.

@asfgit asfgit closed this in 3d815f4 Jan 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants