RocMarshal commented on code in PR #389:
URL: 
https://github.com/apache/incubator-streampark-website/pull/389#discussion_r1942310479


##########
docs/get-started/3.dockerDeployment.md:
##########
@@ -22,7 +22,21 @@ To start the service with docker-compose, you need to 
install [docker-compose](h
 
 ### 1. Apache StreamPark™ deployment based on h2 and docker-compose
 
-This method is suitable for beginners to learn and become familiar with the 
features. The configuration will reset after the container is restarted. Below, 
you can configure Mysql or Pgsql for persistence.
+This method is suitable for beginners to learn, become familiar with the 
features, and use on a lightweight scale.
+
+H2 is a lightweight, high-performance embedded relational database that is 
easy to integrate into Java applications. It has a syntax similar to MySQL and 
supports data persistence. StreamPark defaults to using the H2 database, 
allowing developers to quickly start projects
+
+To achieve data persistence, you can configure the datasource.h2-data-dir 
parameter to specify the storage path for the data files. This ensures that 
data will not be lost even if the service is restarted
+
+datasource.h2-data-dir: Used to specify the storage path of the H2 database 
files, by default located in the ~/streampark/h2-data/ directory in the user's 
home directory
+
+Regarding the H2 console, according to the configuration code, the access path 
/h2-console has been set to be enabled by default and allows access from other 
computers. The console can be used to execute SQL queries, manage databases, etc
+
+After opening /h2-console, fill in JDBC_URL as the H2 database file directory 
+ /metadata, for example, if the default configuration has not been modified, 
fill in as jdbc:h2:~/streampark/h2-data/metadata
+
+Username and password: The default username is admin, the password is 
streampark
+
+Below, you can configure Mysql or Pgsql for persistence.

Review Comment:
   ```suggestion
   Below, you can configure MySQL or PgSQL for persistence.
   ```



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/get-started/3.dockerDeployment.md:
##########
@@ -21,7 +21,21 @@ sidebar_position: 3
 
 ### 1. 基于 h2 和 docker-compose 部署 Apache StreamPark™
 
-该方式适用于入门学习、熟悉功能特性,容器重启后配置会失效,下方可以配置Mysql、Pgsql进行持久化
+该方式适用于入门学习、熟悉功能特性以及轻量规模使用
+
+H2 是一个体积小、性能高、易于嵌入 Java 应用程序的轻量级嵌入式关系型数据库。与 MySQL 有着相似的语法,并且支持数据持久化。StreamPark 
默认使用 H2 数据库,使开发者能够快速开始项目
+
+为了实现数据的持久化存储,您可以配置 datasource.h2-data-dir 参数来指定数据文件的存储路径。这确保了即便重启服务,数据也不会丢失
+
+datasource.h2-data-dir: 用于指定 H2 数据库文件的存储路径,默认在用户主目录下的 ~/streampark/h2-data/ 目录下
+
+关于 H2 控制台,根据配置代码,访问路径 /h2-console 已被设定为默认启用,并允许从其他计算机访问。控制台可用于执行 SQL 
查询、管理数据库等操作
+
+打开 /h2-console 以后填写 JDBC_URL 为 H2 数据库文件目录 + /metadata,如默认配置未修改的情况下填写为 
jdbc:h2:~/streampark/h2-data/metadata
+
+用户名和密码: 默认的用户名为 admin,密码为 streampark
+
+同时下方也可以配置Mysql、Pgsql进行持久化

Review Comment:
   ```suggestion
   同时下方也可以配置 MySQL、PgSQL 进行持久化
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to