You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/01/19 02:18:49 UTC

[dolphinscheduler-website] branch master updated: Add blog ds run in windows english version (#641)

This is an automated email from the ASF dual-hosted git repository.

zhongjiajie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git


The following commit(s) were added to refs/heads/master by this push:
     new c8959fc  Add blog ds run in windows english version (#641)
c8959fc is described below

commit c8959fc6030354dba90c522f8dc6154fe03cc024
Author: smile <93...@qq.com>
AuthorDate: Wed Jan 19 10:18:42 2022 +0800

    Add blog ds run in windows english version (#641)
    
    * add blog -ds run in windows english version
    * will add the video element after video published
    * modify En version according to reviews and changed code snippet same problem in CN version
    * readjustment translation
    
    Co-authored-by: Tq <ti...@gmail.com>
    Co-authored-by: linjicong <li...@zy.com>
---
 blog/en-us/DS_run_in_windows.md | 102 ++++++++++++++++++++++++++++++++++++++++
 blog/zh-cn/DS_run_in_windows.md |  14 +++---
 2 files changed, 109 insertions(+), 7 deletions(-)

diff --git a/blog/en-us/DS_run_in_windows.md b/blog/en-us/DS_run_in_windows.md
new file mode 100644
index 0000000..23edb0d
--- /dev/null
+++ b/blog/en-us/DS_run_in_windows.md
@@ -0,0 +1,102 @@
+# Set-up DolphinScheduler Development Environment and Run Source Code on Windows OS
+
+1. ## Download Source Code
+
+   Official Website: https://dolphinscheduler.apache.org/en-us/index.html
+
+   GitHub Repository: https://github.com/apache/dolphinscheduler.git
+
+   Here we use 1.3.6-release tag.
+
+2. ## Install Zookeeper on Windows
+
+   1. Download zookeeper https://www.apache.org/dyn/closer.lua/zookeeper/zookeeper-3.6.3/apache-zookeeper-3.6.3-bin.tar.gz.
+
+   2. Unzip 'apache-zookeeper-3.6.3-bin.tar.gz'.
+
+   3. Create 'data' and 'log' folder under zookeeper directory.
+
+   4. Copy the 'zoo_sample.cfg' file in the 'conf' directory, rename it to 'zoo.cfg' and modify the data and log directory settings:
+
+      ~~~properties
+      dataDir=I:\\setup\\apache-zookeeper-3.6.3-bin\\data
+      dataLogDir=I:\\setup\\apache-zookeeper-3.6.3-bin\\log
+      ~~~
+
+   5. Run the 'zkServer.cmd' in the bin directory, then run 'zkCli.cmd' to check the running status. Check zookeeper node information under root directory which shows success installation.
+
+3. ## Set-up Backend Environment
+
+   1. Create MYSQL database for debugging, named as 'dolphinschedulerKou'.
+
+   2. Import Maven project to IDEA, find 'pom.xml' under the root directory and modify the scope of 'mysql-connector-java' to compile.
+
+   3. Modify the 'datasource.properties' of module 'dolphinscheduler-dao'.
+
+      ~~~properties
+      # mysql
+      spring.datasource.driver-class-name=com.mysql.jdbc.Driver
+      spring.datasource.url=jdbc:mysql://localhost:3306/dolphinschedulerTest?useUnicode=true&characterEncoding=UTF-8
+      spring.datasource.username=root
+      spring.datasource.password=rootroot
+      ~~~
+
+   4. Refresh dao module and run the main method of 'org.apache.dolphinscheduler.dao.upgrade.shell.CreateDolphinScheduler', the method will create project needed tables and data automatically.
+
+   5. Modify the 'zookeeper.properties' of module 'dolphinscheduler-service'.
+
+      ~~~properties
+      zookeeper.quorum=localhost:2181
+      ~~~
+
+   6. Add standard output in the 'logback-worker.xml', 'logback-master.xml' and 'logback-api.xml'.
+
+      ~~~xml
+      <root level="INFO">
+          <appender-ref ref="STDOUT"/>  <!-- Add Standard Output -->
+          <appender-ref ref="APILOGFILE"/>
+          <appender-ref ref="SKYWALKING-LOG"/>
+      </root>
+      ~~~
+
+
+7. Start the MasterServer by execute the main method of 'org.apache.dolphinscheduler.server.master.MasterServer' and VM Options need to be set are:
+
+   ~~~
+   -Dlogging.config=classpath:logback-master.xml -Ddruid.mysql.usePingMethod=false
+   ~~~
+
+8. Start the WorkerServer by execute the main method of 'org.apache.dolphinscheduler.server.worker.WorkerServer' and VM Options need to be set are:
+
+   ~~~
+   -Dlogging.config=classpath:logback-worker.xml -Ddruid.mysql.usePingMethod=false
+   ~~~
+
+9. Start the ApiApplicationServer by execute the main method of 'org.apache.dolphinscheduler.api.ApiApplicationServer' and VM Options need to be set are:
+
+   ~~~
+   -Dlogging.config=classpath:logback-api.xml -Dspring.profiles.active=api
+   ~~~
+
+10. If you need to use the log function, execute the main method of 'org.apache.dolphinscheduler.server.log.LoggerServer'.
+
+11. Backend swagger url: http://localhost:12345/dolphinscheduler/doc.html?language=en_us&lang=en.
+
+4. ## Set-up Frontend Environment
+
+   1. Install node (no more details).
+
+   2. Enter the folder 'dolphinscheduler-ui' and run.
+
+      ~~~shell
+      npm install
+      npm run start
+      ~~~
+
+   3. Visit [http://localhost:8888](http://localhost:8888/).
+
+   4. Sign in with admin account.
+
+      > Username: admin
+      >
+      > Password: dolphinscheduler123
diff --git a/blog/zh-cn/DS_run_in_windows.md b/blog/zh-cn/DS_run_in_windows.md
index 3125af5..d2ec2de 100644
--- a/blog/zh-cn/DS_run_in_windows.md
+++ b/blog/zh-cn/DS_run_in_windows.md
@@ -21,10 +21,10 @@
 
    4. 将conf目录下的zoo_sample.cfg文件,复制一份,重命名为zoo.cfg,修改其中数据和日志的配置,如:
 
-      ```shell
+      ~~~properties
       dataDir=D:\\code\\apache-zookeeper-3.6.3-bin\\data
       dataLogDir=D:\\code\\apache-zookeeper-3.6.3-bin\\log
-      ```
+      ~~~
 
    5. 在bin中运行 zkServer.cmd,然后运行zkCli.cmd 查看zk运行状态,可以查看zk节点信息即代表安装成功。
 
@@ -36,7 +36,7 @@
 
    3. 修改 dolphinscheduler-dao 模块的 datasource.properties
 
-      ~~~java
+      ~~~properties
       # mysql
       spring.datasource.driver-class-name=com.mysql.jdbc.Driver
       spring.datasource.url=jdbc:mysql://192.168.2.227:3306/dolphinschedulerKou?useUnicode=true&characterEncoding=UTF-8
@@ -48,7 +48,7 @@
 
    5. 修改 dolphinscheduler-service 模块的 zookeeper.properties
 
-      ~~~java
+      ~~~properties
       zookeeper.quorum=localhost:2181
       ~~~
 
@@ -66,19 +66,19 @@
 
    7. 启动 MasterServer,执行 org.apache.dolphinscheduler.server.master.MasterServer 的 main 方法,需要设置 VM Options:
 
-      ~~~java
+      ~~~
       -Dlogging.config=classpath:logback-master.xml -Ddruid.mysql.usePingMethod=false
       ~~~
 
    8. 启动WorkerServer,执行org.apache.dolphinscheduler.server.worker.WorkerServer的 main方法,需要设置 VM Options:
 
-      ~~~java
+      ~~~
       -Dlogging.config=classpath:logback-worker.xml -Ddruid.mysql.usePingMethod=false
       ~~~
 
    9. 启动 ApiApplicationServer,执行 org.apache.dolphinscheduler.api.ApiApplicationServer 的 main 方法,需要设置 VM Options:
 
-      ~~~java
+      ~~~
       -Dlogging.config=classpath:logback-api.xml -Dspring.profiles.active=api
       ~~~