Unverified Commit afc69733 authored by aiwenmo's avatar aiwenmo Committed by GitHub

[Optimization-1369][doc] Optimize package and document (#1370)

* [Optimization-1369][doc] Optimize package and document * Fix welcome Co-authored-by: 's avatarwenmo <32723967+wenmo@users.noreply.github.com>
parent c10a48c3
......@@ -71,7 +71,7 @@
<directory>${project.parent.basedir}/build/extends/</directory>
<outputDirectory>jar</outputDirectory>
<includes>
<include>%regex[dlink-app-1.\d+-${project.version}.jar]</include>
<include>%regex[dlink-app-1.\d+-${project.version}-jar-with-dependencies.jar]</include>
</includes>
</fileSet>
<!--<fileSet>
......
......@@ -267,32 +267,33 @@ public abstract class Executor {
}
private void loginFromKeytabIfNeed() {
this.reset();
setConfig.forEach((k, v) -> log.debug("setConfig key: [{}], value: [{}]", k, v));
String krb5ConfPath = (String) setConfig.getOrDefault("java.security.krb5.conf", "");
String keytabPath = (String) setConfig.getOrDefault("security.kerberos.login.keytab", "");
String principal = (String) setConfig.getOrDefault("security.kerberos.login.principal", "");
if (krb5ConfPath.isEmpty() && keytabPath.isEmpty() && principal.isEmpty()) {
if (Asserts.isAllNullString(krb5ConfPath, keytabPath, principal)) {
log.info("Simple authentication mode");
return;
}
log.info("Kerberos authentication mode");
if (krb5ConfPath.isEmpty()) {
if (Asserts.isNullString(krb5ConfPath)) {
log.error("Parameter [java.security.krb5.conf] is null or empty.");
return;
}
if (keytabPath.isEmpty()) {
if (Asserts.isNullString(keytabPath)) {
log.error("Parameter [security.kerberos.login.keytab] is null or empty.");
return;
}
if (principal.isEmpty()) {
if (Asserts.isNullString(principal)) {
log.error("Parameter [security.kerberos.login.principal] is null or empty.");
return;
}
this.reset();
System.setProperty("java.security.krb5.conf", krb5ConfPath);
org.apache.hadoop.conf.Configuration config = new org.apache.hadoop.conf.Configuration();
config.set("hadoop.security.authentication", "Kerberos");
......
......@@ -86,7 +86,7 @@ export default (): React.ReactNode => {
<Paragraph>
<ul>
<li>
<Link>Flink 服务化</Link>
<Link>代码重构</Link>
</li>
<li>
<Link>数据链路分析</Link>
......@@ -1721,6 +1721,15 @@ export default (): React.ReactNode => {
<li>
<Link>新增后端国际化</Link>
</li>
<li>
<Link>新增 kerberos 验证</Link>
</li>
<li>
<Link>新增 K8S 自动部署应用</Link>
</li>
<li>
<Link>新增 Local 模式的 FlinkWebUI</Link>
</li>
<li>
<Link>修复从指定的 savepoint 恢复任务时未设置 savepint 文件路径导致的问题</Link>
</li>
......@@ -1772,6 +1781,9 @@ export default (): React.ReactNode => {
<li>
<Link>修复引导页的连接错误</Link>
</li>
<li>
<Link>修复 Open API 没有租户</Link>
</li>
<li>
<Link>增加 MysqlCDC 的参数配置</Link>
</li>
......
......@@ -182,7 +182,7 @@ source /etc/profile
mvn clean install -Dmaven.test.skip=true
# 如若修改版本,按以下指定即可。flink可支持多版本(1.11-1.16)
mvn clean install -Dmaven.test.skip=true -P pord,scala-2.11,flink-1.14,flink-1.15
mvn clean install -Dmaven.test.skip=true -P aliyun,nexus,prod,scala-2.11,web,flink-1.14
```
切换到 Dinky 根目录下得 build 文件夹下,即可出现编译后的安装包
......@@ -209,7 +209,7 @@ mvn clean install -Dmaven.test.skip=true
```
>如若修改版本,按以下指定即可。flink可支持多版本(1.11-1.16)
>
> `mvn clean install -Dmaven.test.skip=true -P pord,scala-2.11,flink-1.14,flink-1.15`
> `mvn clean install -Dmaven.test.skip=true -P aliyun,nexus,prod,scala-2.11,web,flink-1.14`
切换到 Dinky 根目录下得 build 文件夹下,即可出现编译后的安装包。
......@@ -226,7 +226,7 @@ npm run build
#### 后端编译
编译maven的时候,移除web profile即可。在-P 后面加: `!web`,如:
`mvn clean install -Dmaven.test.skip=true -P !web,pord,scala-2.11,flink-1.14,flink-1.15`
`mvn clean install -Dmaven.test.skip=true -P !web,aliyun,nexus,prod,scala-2.11,flink-1.14`
---
......
......@@ -182,7 +182,7 @@ source /etc/profile
mvn clean install -Dmaven.test.skip=true
# 如若修改版本,按以下指定即可。flink可支持多版本(1.11-1.16)
mvn clean install -Dmaven.test.skip=true -P pord,scala-2.11,flink-1.14,flink-1.15
mvn clean install -Dmaven.test.skip=true -P aliyun,nexus,prod,scala-2.11,web,flink-1.14
```
切换到 Dinky 根目录下得 build 文件夹下,即可出现编译后的安装包
......@@ -209,7 +209,7 @@ mvn clean install -Dmaven.test.skip=true
```
>如若修改版本,按以下指定即可。flink可支持多版本(1.11-1.16)
>
> `mvn clean install -Dmaven.test.skip=true -P pord,scala-2.11,flink-1.14,flink-1.15`
> `mvn clean install -Dmaven.test.skip=true -P aliyun,nexus,prod,scala-2.11,web,flink-1.14`
切换到 Dinky 根目录下得 build 文件夹下,即可出现编译后的安装包。
......@@ -226,7 +226,8 @@ npm run build
#### 后端编译
编译maven的时候,移除web profile即可。在-P 后面加: `!web`,如:
`mvn clean install -Dmaven.test.skip=true -P !web,pord,scala-2.11,flink-1.14,flink-1.15`
`mvn clean install -Dmaven.test.skip=true -P !web,aliyun,nexus,prod,scala-2.11,flink-1.14
`
---
......
......@@ -1017,6 +1017,5 @@
</pluginManagement>
</build>
</profile>
</profiles>
</project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment