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

[GitHub] [incubator-streampark-website] TyrantLucifer opened a new pull request, #156: [Improve][Docs][User-Guide] Improve the deployment document of user-g…

TyrantLucifer opened a new pull request, #156:
URL: https://github.com/apache/incubator-streampark-website/pull/156

   According to the newest version of streampark to change the deployment document.


-- 
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: issues-unsubscribe@streampark.apache.org

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


[GitHub] [incubator-streampark-website] wolfboys commented on a diff in pull request #156: [Improve][Docs][User-Guide] Improve the deployment document of user-g…

Posted by GitBox <gi...@apache.org>.
wolfboys commented on code in PR #156:
URL: https://github.com/apache/incubator-streampark-website/pull/156#discussion_r1021047865


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/user-guide/1-deployment.md:
##########
@@ -168,40 +170,65 @@ streampark-console-service-1.2.1
 
 ```textmate
 ├── script
-│     ├── final                 // 完整的ddl建表sql
-│     ├── upgrade               // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
+│     ├── schema                               // 完整的ddl建表sql
+│     ├── data                               // 完整的dml插入数据sql
+│     ├── upgrade                             // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
+```
+
+执行schema文件夹中的sql来初始化表结构
+
+##### 初始化表数据
+
+在 1.2.1之前的版本安装过程中不需要手动做数据初始化,只需要设置好数据库信息即可,会自动完成建表和数据初始化等一些列操作, 1.2.1(包含)之后的版本里不在自动建表和升级,需要用户手动执行ddl进行初始化操作,ddl说明如下:
+
+```textmate
+├── script
+│     ├── schema                               // 完整的ddl建表sql
+│     ├── data                               // 完整的dml插入数据sql
+│     ├── upgrade                             // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
 ```
 
+执行data文件夹中的sql来初始化表数据
+
 ##### 修改配置
 安装解包已完成,接下来准备数据相关的工作
 
 ###### 新建数据库 `streampark`
 确保在部署机可以连接的 mysql 里新建数据库 `streampark`
 
 ###### 修改连接信息
-进入到 `conf` 下,修改 `conf/application.yml`,找到 datasource 这一项,找到 mysql 的配置,修改成对应的信息即可,如下
+进入到 `conf` 下,修改 `conf/application.yml`,找到 spring 这一项,找到 profiles.active 的配置,修改成对应的信息即可,如下
+
+```yaml
+spring:
+  profiles.active: mysql #[h2,pgsql,mysql]

Review Comment:
   文档中需要指出: 如果指定的数据库是mysql的话,需要手动将mysql的驱动加到项目的lib下,并说明mysql由于协议不兼容apache所以默认没有提供



-- 
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: issues-unsubscribe@streampark.apache.org

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


[GitHub] [incubator-streampark-website] wolfboys merged pull request #156: [Improve][Docs][User-Guide] Improve the deployment document of user-g…

Posted by GitBox <gi...@apache.org>.
wolfboys merged PR #156:
URL: https://github.com/apache/incubator-streampark-website/pull/156


-- 
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: issues-unsubscribe@streampark.apache.org

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


[GitHub] [incubator-streampark-website] wolfboys commented on a diff in pull request #156: [Improve][Docs][User-Guide] Improve the deployment document of user-g…

Posted by GitBox <gi...@apache.org>.
wolfboys commented on code in PR #156:
URL: https://github.com/apache/incubator-streampark-website/pull/156#discussion_r1021047865


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/user-guide/1-deployment.md:
##########
@@ -168,40 +170,65 @@ streampark-console-service-1.2.1
 
 ```textmate
 ├── script
-│     ├── final                 // 完整的ddl建表sql
-│     ├── upgrade               // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
+│     ├── schema                               // 完整的ddl建表sql
+│     ├── data                               // 完整的dml插入数据sql
+│     ├── upgrade                             // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
+```
+
+执行schema文件夹中的sql来初始化表结构
+
+##### 初始化表数据
+
+在 1.2.1之前的版本安装过程中不需要手动做数据初始化,只需要设置好数据库信息即可,会自动完成建表和数据初始化等一些列操作, 1.2.1(包含)之后的版本里不在自动建表和升级,需要用户手动执行ddl进行初始化操作,ddl说明如下:
+
+```textmate
+├── script
+│     ├── schema                               // 完整的ddl建表sql
+│     ├── data                               // 完整的dml插入数据sql
+│     ├── upgrade                             // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
 ```
 
+执行data文件夹中的sql来初始化表数据
+
 ##### 修改配置
 安装解包已完成,接下来准备数据相关的工作
 
 ###### 新建数据库 `streampark`
 确保在部署机可以连接的 mysql 里新建数据库 `streampark`
 
 ###### 修改连接信息
-进入到 `conf` 下,修改 `conf/application.yml`,找到 datasource 这一项,找到 mysql 的配置,修改成对应的信息即可,如下
+进入到 `conf` 下,修改 `conf/application.yml`,找到 spring 这一项,找到 profiles.active 的配置,修改成对应的信息即可,如下
+
+```yaml
+spring:
+  profiles.active: mysql #[h2,pgsql,mysql]

Review Comment:
   文档中需要指出: 如果指定的数据库是mysql的话,需要手动将mysql的驱动加到项目的lib下或在pom.xml里声明(并说明mysql由于协议不兼容apache所以默认没有提供)



-- 
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: issues-unsubscribe@streampark.apache.org

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


[GitHub] [incubator-streampark-website] TyrantLucifer commented on a diff in pull request #156: [Improve][Docs][User-Guide] Improve the deployment document of user-g…

Posted by GitBox <gi...@apache.org>.
TyrantLucifer commented on code in PR #156:
URL: https://github.com/apache/incubator-streampark-website/pull/156#discussion_r1021048767


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/user-guide/1-deployment.md:
##########
@@ -168,40 +170,65 @@ streampark-console-service-1.2.1
 
 ```textmate
 ├── script
-│     ├── final                 // 完整的ddl建表sql
-│     ├── upgrade               // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
+│     ├── schema                               // 完整的ddl建表sql
+│     ├── data                               // 完整的dml插入数据sql
+│     ├── upgrade                             // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
+```
+
+执行schema文件夹中的sql来初始化表结构
+
+##### 初始化表数据
+
+在 1.2.1之前的版本安装过程中不需要手动做数据初始化,只需要设置好数据库信息即可,会自动完成建表和数据初始化等一些列操作, 1.2.1(包含)之后的版本里不在自动建表和升级,需要用户手动执行ddl进行初始化操作,ddl说明如下:
+
+```textmate
+├── script
+│     ├── schema                               // 完整的ddl建表sql
+│     ├── data                               // 完整的dml插入数据sql
+│     ├── upgrade                             // 每个版本升级部分的sql(只记录从上个版本到本次版本的sql变化)
 ```
 
+执行data文件夹中的sql来初始化表数据
+
 ##### 修改配置
 安装解包已完成,接下来准备数据相关的工作
 
 ###### 新建数据库 `streampark`
 确保在部署机可以连接的 mysql 里新建数据库 `streampark`
 
 ###### 修改连接信息
-进入到 `conf` 下,修改 `conf/application.yml`,找到 datasource 这一项,找到 mysql 的配置,修改成对应的信息即可,如下
+进入到 `conf` 下,修改 `conf/application.yml`,找到 spring 这一项,找到 profiles.active 的配置,修改成对应的信息即可,如下
+
+```yaml
+spring:
+  profiles.active: mysql #[h2,pgsql,mysql]

Review Comment:
   Got it, I will add this tips here. Thank you for your time to review.



-- 
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: issues-unsubscribe@streampark.apache.org

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