Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to solve the problem of using source mode docker to build project and create Oracle data source failure #4732

Closed
wistwill opened this issue Feb 8, 2021 · 7 comments · Fixed by #4875
Labels

Comments

@wistwill
Copy link

wistwill commented Feb 8, 2021

Describe the question:
use source mode docker to build project and create Oracle data source failure.

Which version of DolphinScheduler:
-[apache-dolphinscheduler-incubating-1.3.4]

Additional context
Using official documents https://dolphinscheduler.apache.org/zh-cn/docs/1.3.4/user_ doc/docker- deployment.html After the build project is started (recommended) in docker compose mode, the creation of Oracle11g data source will fail.

@chengshiwen
Copy link
Member

chengshiwen commented Feb 8, 2021

@wistwill Because of the commercial license, we cannot directly use the driver and client of MySQL and Oracle. If you want to use Oracle, you can build a new image based on our apache/dolphinscheduler image.

by the way , please update/add title and description in English

@chengshiwen
Copy link
Member

chengshiwen commented Feb 8, 2021

As for MySQL, you need to download mysql-connector-java-5.1.49.jar

  1. Create your Dockerfile
FROM apache/dolphinscheduler:latest
COPY mysql-connector-java-5.1.49.jar /opt/dolphinscheduler/lib
RUN apk add --update --no-cache mysql-client
  1. Build the image

@chengshiwen
Copy link
Member

chengshiwen commented Feb 8, 2021

As for Oracle in Datasource, you only need to download the Oracle driver and put it in the /opt/dolphinscheduler/lib directory

@davidzollo
Copy link
Contributor

+1
please update/add title and description in English, thx

@wistwill wistwill changed the title 使用源码方式docker构建项目创建oracle数据源失败问题 [Question] How to solve the problem of using source mode docker to build project and create Oracle data source failure Feb 17, 2021
@CalvinKirs CalvinKirs added the FAQ label Feb 22, 2021
@dogloster
Copy link

As for Oracle in Datasource, you only need to download the Oracle driver and put it in the /opt/dolphinscheduler/lib directory

I copy the oracle drive ojdbc6.jar to /opt/dolphinscheduler/lib.
then stop-all.sh and start-all.sh.
create a oracle database source still report error:
org.apache.dolphinscheduler.api.service.DataSourceService:[446] - oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

I can connect oracle by Dbvisualizer with the oracle oracle drive.
what's wrong with me?
dolphinscheduler is 1.3.6.

@chengshiwen
Copy link
Member

@dogloster You can refer to https://dolphinscheduler.apache.org/en-us/docs/1.3.6/user_doc/docker-deployment.html, and see How to support Oracle datasource in Datasource manage?

@davidzollo
Copy link
Contributor

As for Oracle in Datasource, you only need to download the Oracle driver and put it in the /opt/dolphinscheduler/lib directory

I copy the oracle drive ojdbc6.jar to /opt/dolphinscheduler/lib.
then stop-all.sh and start-all.sh.
create a oracle database source still report error:
org.apache.dolphinscheduler.api.service.DataSourceService:[446] - oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

I can connect oracle by Dbvisualizer with the oracle oracle drive.
what's wrong with me?
dolphinscheduler is 1.3.6.

if you still have any questions, please
Chat rooms are great for quick questions or discussions on specialized topics. The following chat rooms are officially part of Apache DolphinScheduler; welcome to join the Slack workspace, the workspace URL: http://asf-dolphinscheduler.slack.com/
you can join through invitation url: https://s.apache.org/dolphinscheduler-slack
this chat room is used for questions and discussions related to using DolphinScheduler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants