You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by GitBox <gi...@apache.org> on 2022/09/08 14:41:01 UTC

[GitHub] [incubator-linkis-website] casionone commented on a diff in pull request #508: update debug doc

casionone commented on code in PR #508:
URL: https://github.com/apache/incubator-linkis-website/pull/508#discussion_r966057936


##########
i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2.0/development/linkis-debug.md:
##########
@@ -261,70 +254,85 @@ org.apache.linkis.entrance.LinkisEntranceApplication
 通过勾选Include dependencies with “Provided” scope ,可以在调试时,引入provided级别的依赖包。
 ```
 
-### 3.9 启动cg-engineconnmanager
+### 3.8 启动linkis-cg-engineplugin
 
-![engineconnmanager-app](/Images/development/debug/engineconnmanager-app.png)
+![engineplugin-app](/Images/development/debug/engineplugin-app.png)
 
 参数解释:
 
 ```shell
 [Service Name]
-linkis-cg-engineconnmanager
+linkis-cg-engineplugin
 
 [Use classpath of module]
-linkis-engineconn-manager-server
+linkis-engineconn-plugin-server
 
 [VM Opitons]
--DserviceName=linkis-cg-engineconnmanager -Xbootclasspath/a:/Users/leojie/other_project/apache/linkis/incubator-linkis/linkis-dist/package/conf -DJAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/
+-DserviceName=linkis-cg-engineplugin -Xbootclasspath/a:{YourPathPrefix}/incubator-linkis/linkis-dist/package/conf
 
 [main Class]
-org.apache.linkis.ecm.server.LinkisECMApplication
+org.apache.linkis.engineplugin.server.LinkisEngineConnPluginServer
 
 [Add provided scope to classpath]
 通过勾选Include dependencies with “Provided” scope ,可以在调试时,引入provided级别的依赖包。
 ```
 
--DJAVA_HOME是为了指定ecm启动引擎时所使用的java命令所在的路径,如果你默认JAVA环境变量中的版本满足需要,此配置可以不加
+启动engineplugin的时候可能会遇到如下报错:
 
-针对linkis-cg-engineplugin模块调试暂只支持Mac OS
+![engineplugin-debug-error](/Images/development/debug/engineplugin-debug-error.png)
 
+需要把公共依赖的模块加到ecp模块的classpath下,修改pes的pom增加以下依赖:
+linkis-computation-governance/linkis-engineconn/linkis-engineconn-plugin-server/pom.xml
+```xml
+ <dependency>
+      <groupId>org.apache.linkis</groupId>
+      <artifactId>linkis-dist</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+
+    <dependency>
+      <groupId>mysql</groupId>
+      <artifactId>mysql-connector-java</artifactId>
+      <version>${mysql.connector.version}</version>
+</dependency>
 
-### 3.10 启动linkis-cg-engineplugin
+```
 
-![engineplugin-app](/Images/development/debug/engineplugin-app.png)
+### 3.9 启动cg-engineconnmanager

Review Comment:
   keep consistent?  linkis-cg-engineconnmanager



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org