Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
07b74f41
Unverified
Commit
07b74f41
authored
May 27, 2024
by
Zzm0809
Committed by
GitHub
May 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Doc] Optimize some documents (#3531)
Signed-off-by:
Zzm0809
<
934230207@qq.com
>
parent
3d85eb04
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
47 deletions
+55
-47
README.md
dinky-web/README.md
+7
-4
README_zh_CN.md
dinky-web/README_zh_CN.md
+4
-4
package.json
dinky-web/package.json
+7
-7
pom.xml
dinky-web/pom.xml
+2
-2
compile_deploy.md
docs/docs/deploy_guide/compile_deploy.md
+1
-1
normal_deploy.mdx
docs/docs/deploy_guide/normal_deploy.mdx
+9
-5
local_debug.md
docs/docs/developer_guide/local_debug.md
+25
-24
No files found.
dinky-web/README.md
View file @
07b74f41
...
...
@@ -6,10 +6,10 @@ This project uses [Ant Design Pro](https://pro.ant.design) for initialization. H
## Environment preparation
| Environment | Version
| Remarks |
|
----------- | -------- | -------
|
| node | 1
4.19.0+
| |
| npm |
7.19.0+
| |
| Environment | Version | Remarks |
|
-------------|---------|---------
|
| node | 1
8+
| |
| npm |
10+
| |
> Configure related environment variables by yourself
...
...
@@ -19,6 +19,9 @@ This project uses [Ant Design Pro](https://pro.ant.design) for initialization. H
# Note: You need to enter the directory of this module to execute
npm i
--force
&&
npm start
## 如果提示 npm ERR! code ERESOLVE
npm cache clean
--force
```
### Build
...
...
dinky-web/README_zh_CN.md
View file @
07b74f41
...
...
@@ -4,10 +4,10 @@
## 环境准备
| 环境
| 版本
| 备注 |
|
---- | -------- | ----
|
| node | 1
4.19.0+ |
|
| npm |
7.19.0+ |
|
| 环境
| 版本
| 备注 |
|
------|-----|----
|
| node | 1
8+ |
|
| npm |
10+ |
|
> 自行配置相关环境变量
...
...
dinky-web/package.json
View file @
07b74f41
...
...
@@ -93,20 +93,20 @@
"cross-env"
:
"^7.0.3"
,
"eslint"
:
"^9.3.0"
,
"express"
:
"^4.19.2"
,
"husky"
:
"^
8
"
,
"lint-staged"
:
"^1
3
"
,
"prettier"
:
"^
2
"
,
"husky"
:
"^
9.0.11
"
,
"lint-staged"
:
"^1
5.2.4
"
,
"prettier"
:
"^
3.2.5
"
,
"react-dev-inspector"
:
"^2.0.1"
,
"react-inspector"
:
"^6.0.2"
,
"sql-formatter"
:
"^1
3.0
.1"
,
"sql-formatter"
:
"^1
5.3
.1"
,
"swagger-ui-dist"
:
"^5.17.12"
,
"ts-node"
:
"^10.9.2"
,
"typescript"
:
"^4"
,
"typescript"
:
"^4
.9.5
"
,
"umi-presets-pro"
:
"^2.0.0"
},
"engines"
:
{
"node"
:
">=1
4.0.0
"
,
"npm"
:
">=
6.0.
0"
,
"node"
:
">=1
8
"
,
"npm"
:
">=
1
0"
,
"umi"
:
">=3.0.0"
,
"yarn"
:
">=1.0.0"
}
...
...
dinky-web/pom.xml
View file @
07b74f41
...
...
@@ -47,8 +47,8 @@
<artifactId>
frontend-maven-plugin
</artifactId>
<version>
1.12.0
</version>
<configuration>
<nodeVersion>
v1
6.17
.0
</nodeVersion>
<npmVersion>
8.19
.0
</npmVersion>
<nodeVersion>
v1
8.15
.0
</nodeVersion>
<npmVersion>
10.5
.0
</npmVersion>
<!-- 国内node下载加速 -->
<!--<nodeDownloadRoot>https://mirrors.huaweicloud.com/nodejs/</nodeDownloadRoot>-->
<!--<npmDownloadRoot>https://repo.huaweicloud.com/npm-software/</npmDownloadRoot>-->
...
...
docs/docs/deploy_guide/compile_deploy.md
View file @
07b74f41
...
...
@@ -94,7 +94,7 @@ git clone https://github.com/DataLinkDC/dinky.git
cd
/opt/dinky-source-code
# 编译打包 Profile, 注意 scala 支持 2.11 和 2.12, 请根据实际情况进行选择,jdk 支持 8/11,请根据实际情况进行选择,不选jdk11默认使用系统内的jdk8
mvn clean package
-DskipTests
=
true
-Pprod
,jdk11,flink-single-version,scala-2.12,aliyun,flink-1.16,web
mvn clean package
-DskipTests
=
true
-P
prod,jdk11,flink-single-version,scala-2.12,aliyun,flink-1.16,web
```
...
...
docs/docs/deploy_guide/normal_deploy.mdx
View file @
07b74f41
...
...
@@ -109,7 +109,6 @@ spring:
# If you use the h2 database, please configure the h2 database connection information in application-h2.yml,
# note: the h2 database is only for experience use, and the related data that has been created cannot be migrated, please use it with caution
active: ${DB_ACTIVE:mysql} #[h2,mysql,pgsql]
include: jmx
```
修改 Dinky 的 mysql 的配置文件。
...
...
@@ -130,13 +129,13 @@ spring:
Dinky 需要具备内置的 Flink 环境,该 Flink 环境的实现需要用户自己在 Dinky 根目录下 extends/flink${FLINK_VERSION} 文件夹上传相关的 Flink 依赖,如 flink-dist, flink-table 等,具体见下文。当然也可在启动文件中指定 FLINK_HOME,但不建议这样做。
:::warning 注意事项
1. Dinky 并没有内置的 mysql/postgres 数据库驱动,需要用户自己上传 mysql-connector-java-xxx.jar/postgresql-xxx.jar 等jdbc 驱动到
lib 下/extends 下
1. Dinky 并没有内置的 mysql/postgres 数据库驱动,需要用户自己上传 mysql-connector-java-xxx.jar/postgresql-xxx.jar 等jdbc 驱动到
`lib 下`或者`extends 下`
2. Dinky 当前版本的 yarn 的 per-job 与 application 执行模式依赖 flink-shaded-hadoop ,需要额外添加 flink-shaded-hadoop-uber 包,如果您使用的是`flink-shaded-hadoop-uber-3`请手动删除该包内部的 javax.servlet 等冲突内容。
当然如果你的 Hadoop 为 3+ 也可以自行编译对于版本的 dinky-client-hadoop.jar 以替代 uber 包,
3. Dinky所有监控相关功能目前强依赖hadoop,即使你不需要任何hadoop功能,也需要上传flink-shaded-hadoop-uber,否则会导致监控功能无法正常使用
:::
将 flink-shaded-hadoop 上传到到
plugin
s 文件目录下,使用 flink-shaded-hadoop-3 地址如下:
将 flink-shaded-hadoop 上传到到
extend
s 文件目录下,使用 flink-shaded-hadoop-3 地址如下:
```
https://mvnrepository.com/artifact/org.apache.flink/flink-shaded-hadoop-3-uber?repo=cloudera-repos
...
...
@@ -220,7 +219,7 @@ log4j-core-2.17.1.jar
log4j-slf4j-impl-2.17.1.jar
```
:::tip
1.0.0 之前的版本 Flink 相关依赖是放在 plugins 目录下,1.0.0 及之后是放在 extends 目录下。
(目前做了 plugins 目录的兼容,即放在 plugins 下也会生效)
1.0.0 之前的版本 Flink 相关依赖是放在 plugins 目录下,1.0.0 及之后是放在 extends 目录下。
推荐公共 jar 包放在 extends 目录下,Flink 版本的依赖放在 extends/flink${FLINK_VERSION} 下
:::
...
...
@@ -236,10 +235,15 @@ sh auto.sh stop
sh auto.sh restart
#查看状态
sh auto.sh status
# 前台启动(调试使用,会输出日志,阻塞当前终端,结束请Ctrl+C,但是会直接退出服务,仅供启动时无日志输出且在排查问题时使用)
sh auto.sh startOnPending
```
#### 版本适配
启动指令的第二个参数则是版本选择,支持 【1.14, 1.15, 1.16, 1.17, 1.18】,参考指令如下:
启动指令的第二个参数则是版本选择,支持 【1.14, 1.15, 1.16, 1.17, 1.18, 1.19】,参考指令如下:
> 自 1.0.2 版本开始加入了自动检测 Flink 版本的功能,如果不传入版本号,则会自动检测 Flink 版本作为启动版本(即检测 extends 目录下的 flink${FLINK_VERSION} 文件夹)
```shell
#启动
sh auto.sh start 1.16
...
...
docs/docs/developer_guide/local_debug.md
View file @
07b74f41
...
...
@@ -12,7 +12,7 @@ title: 本地调试
-
Flink, Java, Maven, Node, React, Ant Design Pro
-
MySQL/PostgreSQL/H2
-
IntelliJ IDEA
:::
:::
## 前置条件
...
...
@@ -30,10 +30,10 @@ title: 本地调试
| 环境 | 版本 |
|:----------------:|:------------------------:|
| npm |
7.19.0+
|
| node.js |
14.17.0+
|
| npm |
10+
|
| node.js |
18+
|
| jdk | Java8 或者 Java11 |
| maven |
3.8.0+
|
| maven |
3.8+
|
| lombok | IDEA插件安装 |
| MySQL/PostgreSQL | MySQL5.7+ / PostgreSQL15 |
...
...
@@ -54,7 +54,7 @@ git clone git://github.com/DataLinkDC/dlink.git
1.
启动 IDEA 并选择 Open。
2.
选择已克隆的 Dinky 存储库的根文件夹。
3.
等待项目加载完成。
4.
设置 JDK 1.8 和 Maven 3.
6.0
。
4.
设置 JDK 1.8 和 Maven 3.
8+
。
## 前端环境
...
...
@@ -99,24 +99,26 @@ Install/Package 过程中报错代码格式化问题,请参考 [代码格式化]
### Profile 说明
| Profile | 说明 |
|:-------------:|:----------------------------------------------------------------------------------:|
| dev | 开发环境/本地调试,默认不选中,此功能主要用于本地调试或者二次开发,用于加载相关依赖 |
| aliyun | 加速依赖下载 |
| fast | 主要用于跳过代码检查和代码格式化
<br/>
注意:如果 JDK 环境为 jdk8 需要勾选此 profile,否则会报错
<br/>
如果 JDK 环境为 11 无需勾选 |
| flink-1.14 | 用于指定 Flink 版本为 1.14,只能单选,需要勾选 flink-single-version |
| flink-1.15 | 用于指定 Flink 版本为 1.15,只能单选,需要勾选 flink-single-version |
| flink-1.16 | 用于指定 Flink 版本为 1.16,只能单选,需要勾选 flink-single-version |
| flink-1.17 | 用于指定 Flink 版本为 1.17,只能单选,需要勾选 flink-single-version |
| flink-1.18 | 用于指定 Flink 版本为 1.18,只能单选,需要勾选 flink-single-version |
| flink-1.19 | 用于指定 Flink 版本为 1.19,只能单选,需要勾选 flink-single-version |
| jdk 11 | 用于指定 JDK 版本为 11,前提是本地已经安装了 JDK 11,如果没有安装 jdk11,则默认使用本地的 jdk8 |
| mac | 用于适配在 mac 系统上进行调试 |
| maven-central | 用于指定 maven 仓库为中央仓库 |
| prod | 生产环境,默认选中,此功能主要用于编译打包,此 profile 会将部分依赖排除掉,不会打进最终 tar.gz 包内 |
| scala-2.11 | 用于指定 Scala 版本为 2.11,只能单选 |
| scala-2.12 | 用于指定 Scala 版本为 2.12,只能单选 |
| web | 打包前端资源,需要勾选 |
| Profile | 说明 |
|:--------------------:|:----------------------------------------------------------------------------------:|
| dev | 开发环境/本地调试,默认不选中,此功能主要用于本地调试或者二次开发,用于加载相关依赖 |
| aliyun | 加速依赖下载 |
| fast | 主要用于跳过代码检查和代码格式化
<br/>
注意:如果 JDK 环境为 jdk8 需要勾选此 profile,否则会报错
<br/>
如果 JDK 环境为 11 无需勾选 |
| flink-1.14 | 用于指定 Flink 版本为 1.14,只能单选,需要勾选 flink-single-version |
| flink-1.15 | 用于指定 Flink 版本为 1.15,只能单选,需要勾选 flink-single-version |
| flink-1.16 | 用于指定 Flink 版本为 1.16,只能单选,需要勾选 flink-single-version |
| flink-1.17 | 用于指定 Flink 版本为 1.17,只能单选,需要勾选 flink-single-version |
| flink-1.18 | 用于指定 Flink 版本为 1.18,只能单选,需要勾选 flink-single-version |
| flink-1.19 | 用于指定 Flink 版本为 1.19,只能单选,需要勾选 flink-single-version |
| flink-all | 主要用于本地的 install 生成依赖到本地仓库,不适合用打包部署 |
| flink-single-version | 配合单版本打包或者调试下勾选 |
| jdk11 | 用于指定 JDK 版本为 11,前提是本地已经安装了 JDK 11,如果没有安装 jdk11,则默认使用本地的 jdk8 |
| mac | 用于适配在 mac 系统上进行调试 |
| maven-central | 用于指定 maven 仓库为中央仓库 |
| prod | 生产环境,默认选中,此功能主要用于编译打包,此 profile 会将部分依赖排除掉,不会打进最终 tar.gz 包内 |
| scala-2.11 | 用于指定 Scala 版本为 2.11,只能单选 |
| scala-2.12 | 用于指定 Scala 版本为 2.12,只能单选 |
| web | 打包前端资源,需要勾选 |
:::warning 注意
...
...
@@ -183,7 +185,6 @@ spring:
# If you use the h2 database, please configure the h2 database connection information in application-h2.yml,
# note: the h2 database is only for experience use, and the related data that has been created cannot be migrated, please use it with caution
active
:
mysql
#[h2,mysql,pgsql]
include
:
jmx
```
### 初始化数据库
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment