This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch asf-site
in repository
https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 3e5ec23 Automated deployment: Thu Oct 22 15:05:45 UTC 2020
f99b68645a19871217628a346400a8b458e7126a
3e5ec23 is described below
commit 3e5ec23c0ffc815e181b056dd2bbfb92a0697fac
Author: dailidong <[email protected]>
AuthorDate: Thu Oct 22 15:05:45 2020 +0000
Automated deployment: Thu Oct 22 15:05:45 UTC 2020
f99b68645a19871217628a346400a8b458e7126a
---
build/documentation.js | 2 +-
.../development/development-environment-setup.html | 202 +++++++++++++++++++++
.../development/development-environment-setup.json | 6 +
3 files changed, 209 insertions(+), 1 deletion(-)
diff --git a/build/documentation.js b/build/documentation.js
index 96920fc..8748a97 100644
--- a/build/documentation.js
+++ b/build/documentation.js
@@ -174,4 +174,4 @@ Object.defineProperty(t,"__esModule",{value:!0});var
i="function"==typeof Symbol
* Copyright © 2012-2019 Faisal Salman <[email protected]>
* Licensed under MIT License
*/
-return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void
0},trim:function(e){return
e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m={rgx:function(e,t){for(var
n,r,o,i,a,c,s=0;s<t.length&&!a;){var
l=t[s],u=t[s+1];for(n=r=0;n<l.length&&!a;)if(a=l[n++].exec(e))for(o=0;o<u.length;o++)c=a[++r],i=u[o],"object"==typeof
i&&i.length>0?2==i.length?"function"==typeof
i[1]?this[i[0]]=i[1].call(this,c):this[i[0]]=i[1]:3==i.length?"function"!=typeof
i[1]||i[1].exec&&i[1].test?this[i [...]
\ No newline at end of file
+return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void
0},trim:function(e){return
e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m={rgx:function(e,t){for(var
n,r,o,i,a,c,s=0;s<t.length&&!a;){var
l=t[s],u=t[s+1];for(n=r=0;n<l.length&&!a;)if(a=l[n++].exec(e))for(o=0;o<u.length;o++)c=a[++r],i=u[o],"object"==typeof
i&&i.length>0?2==i.length?"function"==typeof
i[1]?this[i[0]]=i[1].call(this,c):this[i[0]]=i[1]:3==i.length?"function"!=typeof
i[1]||i[1].exec&&i[1].test?this[i [...]
\ No newline at end of file
diff --git a/en-us/docs/development/development-environment-setup.html
b/en-us/docs/development/development-environment-setup.html
new file mode 100644
index 0000000..0b4e72f
--- /dev/null
+++ b/en-us/docs/development/development-environment-setup.html
@@ -0,0 +1,202 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no">
+ <meta name="keywords" content="development-environment-setup" />
+ <meta name="description" content="development-environment-setup" />
+ <!-- 网页标签标题 -->
+ <title>development-environment-setup</title>
+ <link rel="shortcut icon" href="/img/docsite.ico"/>
+ <link rel="stylesheet" href="/build/documentation.css" />
+</head>
+<body>
+ <div id="root"><div class="documentation-page"
data-reactroot=""><header class="header-container header-container-normal"><div
class="header-body"><a href="/en-us/index.html"><img class="logo"
src="/img/hlogo_colorful.svg"/></a><div class="search search-normal"><span
class="icon-search"></span></div><span class="language-switch
language-switch-normal">中</span><div class="header-menu"><img
class="header-menu-toggle" src="/img/system/menu_gray.png"/><div><ul
class="ant-menu blackClass ant [...]
+<ol>
+<li>
+<p>First, fork the <a
href="https://github.com/apache/incubator-dolphinscheduler">dolphinscheduler</a>
code from the remote repository to your local repository.</p>
+</li>
+<li>
+<p>Install MySQL/PostgreSQL, JDK and MAVEN in your own software development
environment.</p>
+</li>
+<li>
+<p>Clone your forked repository to the local file system.</p>
+</li>
+</ol>
+<pre><code> git clone
https://github.com/apache/incubator-dolphinscheduler.git`
+</code></pre>
+<ol start="4">
+<li>After finished the clone, go into the project directory and execute the
following commands:</li>
+</ol>
+<pre><code> git branch -a #check the branch
+ git checkout dev #switch to the dev branch
+ git pull #sychronize the branch with the remote branch
+ mvn -U clean package -Prelease -Dmaven.test.skip=true #because the
project uses gRPC, you need to compile the project to generate the required
classes
+</code></pre>
+<h4>Install node</h4>
+<ol>
+<li>
+<p>Install nvm<br>
+curl -o- <a
href="https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh">https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh</a></p>
+</li>
+<li>
+<p>Refresh the environment variables<br>
+source ~/.bash_profile</p>
+</li>
+<li>
+<p>Install node<br>
+nvm install v12.12.0<br>
+note:mac users could install npm through brew:brew install npm</p>
+</li>
+<li>
+<p>Validate the node installation<br>
+node --version</p>
+</li>
+</ol>
+<h4>Install zookeeper</h4>
+<ol>
+<li>
+<p>Download zookeeper<br>
+<a
href="http://apache.mirrors.hoobly.com/zookeeper/zookeeper-3.6.1/apache-zookeeper-3.6.1-bin.tar.gz">http://apache.mirrors.hoobly.com/zookeeper/zookeeper-3.6.1/apache-zookeeper-3.6.1-bin.tar.gz</a></p>
+</li>
+<li>
+<p>Copy the zookeeper config file<br>
+cp conf/zoo_sample.cfg conf/zoo.cfg</p>
+</li>
+<li>
+<p>Modify zookepper cofig<br>
+vi conf/zoo.cfg<br>
+dataDir=./tmp/zookeeper</p>
+</li>
+<li>
+<p>Start/stop zookeeper<br>
+./bin/zkServer.sh start<br>
+./bin/zkServer.sh stop</p>
+</li>
+</ol>
+<h4>Create database</h4>
+<p>Create user, user name: ds_user, password: dolphinscheduler</p>
+<pre><code> mysql> CREATE DATABASE dolphinscheduler DEFAULT CHARACTER
SET utf8 DEFAULT COLLATE utf8_general_ci;
+ mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO 'ds_user'@'%'
IDENTIFIED BY 'dolphinscheduler';
+ mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO
'ds_user'@'localhost' IDENTIFIED BY 'dolphinscheduler';
+ mysql> flush privileges;
+</code></pre>
+<h4>Set up the front-end</h4>
+<ol>
+<li>
+<p>Enter the dolphinscheduler-ui directory<br>
+cd dolphinscheduler-ui</p>
+</li>
+<li>
+<p>Run npm install</p>
+</li>
+</ol>
+<h4>Set up the back-end</h4>
+<ol>
+<li>
+<p>Import the project to IDEA<br>
+file-->open</p>
+</li>
+<li>
+<p>Modify the database configuration in the datasource.properties file in the
resource directory of the dao module</p>
+</li>
+</ol>
+<pre><code> spring.datasource.driver-class-name=com.mysql.jdbc.Driver
+ spring.datasource.url=jdbc:mysql://localhost:3306/dolphinscheduler
+ spring.datasource.username=ds_user
+ spring.datasource.password=dolphinscheduler
+</code></pre>
+<ol start="3">
+<li>
+<p>Modify pom.xml in the root directory and modify the scope of
mysql-connector-java to complie</p>
+</li>
+<li>
+<p>Refresh the dao module, run the main method of
org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler to
automatically insert the tables and data required by the project.</p>
+</li>
+<li>
+<p>Modify the service module<br>
+try to change the zookeeper.quorum part of the zookeeper.properties file
+zookeeper.quorum=localhost:2181</p>
+</li>
+<li>
+<p>Modify the .env file of the dolphinscheduler-ui module</p>
+</li>
+</ol>
+<pre><code> API_BASE = http://localhost:12345
+ DEV_HOST = localhost
+</code></pre>
+<h4>Start the project</h4>
+<ol>
+<li>
+<p>Start zookeeper<br>
+./bin/zkServer.sh start</p>
+</li>
+<li>
+<p>Start MasterServer<br>
+run the main method of org.apache.dolphinscheduler.server.master.MasterServer,
you need to set the following VM options:</p>
+</li>
+</ol>
+<pre><code> -Dlogging.config=classpath:logback-master.xml
-Ddruid.mysql.usePingMethod=false
+</code></pre>
+<ol start="3">
+<li>Start WorkerServer<br>
+run the main method of org.apache.dolphinscheduler.server.worker.WorkerServer,
you need to set the following VM options:</li>
+</ol>
+<pre><code> -Dlogging.config=classpath:logback-worker.xml
-Ddruid.mysql.usePingMethod=false
+</code></pre>
+<ol start="4">
+<li>Start ApiApplicationServer<br>
+run the main method of org.apache.dolphinscheduler.api.ApiApplicationServer,
you need to set the following VM options:</li>
+</ol>
+<pre><code> -Dlogging.config=classpath:logback-api.xml
-Dspring.profiles.active=api
+</code></pre>
+<ol start="5">
+<li>We are not going to start the other modules. if they are required to be
started, check script/dolphinscheduler-daemon.sh and set them the same VM
Options.</li>
+</ol>
+<pre><code> if [ "$command" = "api-server" ]; then
+ LOG_FILE="-Dlogging.config=classpath:logback-api.xml
-Dspring.profiles.active=api"
+ CLASS=org.apache.dolphinscheduler.api.ApiApplicationServer
+ elif [ "$command" = "master-server" ]; then
+ LOG_FILE="-Dlogging.config=classpath:logback-master.xml
-Ddruid.mysql.usePingMethod=false"
+ CLASS=org.apache.dolphinscheduler.server.master.MasterServer
+ elif [ "$command" = "worker-server" ]; then
+ LOG_FILE="-Dlogging.config=classpath:logback-worker.xml
-Ddruid.mysql.usePingMethod=false"
+ CLASS=org.apache.dolphinscheduler.server.worker.WorkerServer
+ elif [ "$command" = "alert-server" ]; then
+ LOG_FILE="-Dlogback.configurationFile=conf/logback-alert.xml"
+ CLASS=org.apache.dolphinscheduler.alert.AlertServer
+ elif [ "$command" = "logger-server" ]; then
+ CLASS=org.apache.dolphinscheduler.server.log.LoggerServer
+ else
+ echo "Error: No command named \`$command' was found."
+ exit 1
+ fi
+</code></pre>
+<ol start="6">
+<li>cd dolphinscheduler-ui directory and run npm run start</li>
+</ol>
+<h4>Visit the project</h4>
+<ol>
+<li>
+<p>Visit <a href="http://localhost:8888">http://localhost:8888</a></p>
+</li>
+<li>
+<p>Sign in with the administrator account
+username: admin<br>
+password: dolphinscheduler123</p>
+</li>
+</ol>
+</div></section><footer class="footer-container"><div class="footer-body"><img
src="/img/ds_gray.svg"/><div class="cols-container"><div class="col
col-12"><h3>Disclaimer</h3><p>Apache DolphinScheduler (incubating) is an effort
undergoing incubation at The Apache Software Foundation (ASF), sponsored by
Incubator.
+Incubation is required of all newly accepted projects until a further review
indicates
+that the infrastructure, communications, and decision making process have
stabilized in a manner consistent with other successful ASF projects.
+While incubation status is not necessarily a reflection of the completeness or
stability of the code,
+it does indicate that the project has yet to be fully endorsed by the
ASF.</p></div><div class="col col-6"><dl><dt>Documentation</dt><dd><a
href="/en-us/docs/development/architecture-design.html"
target="_self">Overview</a></dd><dd><a
href="/en-us/docs/1.2.0/user_doc/quick-start.html" target="_self">Quick
start</a></dd><dd><a href="/en-us/docs/development/backend-development.html"
target="_self">Developer guide</a></dd></dl></div><div class="col
col-6"><dl><dt>ASF</dt><dd><a href="http:/ [...]
+ <script
src="https://f.alicdn.com/react/15.4.1/react-with-addons.min.js"></script>
+ <script
src="https://f.alicdn.com/react/15.4.1/react-dom.min.js"></script>
+ <script>
+ window.rootPath = '';
+ </script>
+ <script src="/build/documentation.js"></script>
+</body>
+</html>
\ No newline at end of file
diff --git a/en-us/docs/development/development-environment-setup.json
b/en-us/docs/development/development-environment-setup.json
new file mode 100644
index 0000000..3352826
--- /dev/null
+++ b/en-us/docs/development/development-environment-setup.json
@@ -0,0 +1,6 @@
+{
+ "filename": "development-environment-setup.md",
+ "__html": "<h4>Preparation</h4>\n<ol>\n<li>\n<p>First, fork the <a
href=\"https://github.com/apache/incubator-dolphinscheduler\">dolphinscheduler</a>
code from the remote repository to your local
repository.</p>\n</li>\n<li>\n<p>Install MySQL/PostgreSQL, JDK and MAVEN in
your own software development environment.</p>\n</li>\n<li>\n<p>Clone your
forked repository to the local file system.</p>\n</li>\n</ol>\n<pre><code>
git clone https://github.com/apache/incubator-dolphinscheduler.gi [...]
+ "link": "/en-us/docs/development/development-environment-setup.html",
+ "meta": {}
+}
\ No newline at end of file