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 @@ ...@@ -71,7 +71,7 @@
<directory>${project.parent.basedir}/build/extends/</directory> <directory>${project.parent.basedir}/build/extends/</directory>
<outputDirectory>jar</outputDirectory> <outputDirectory>jar</outputDirectory>
<includes> <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> </includes>
</fileSet> </fileSet>
<!--<fileSet> <!--<fileSet>
......
...@@ -267,32 +267,33 @@ public abstract class Executor { ...@@ -267,32 +267,33 @@ public abstract class Executor {
} }
private void loginFromKeytabIfNeed() { private void loginFromKeytabIfNeed() {
this.reset();
setConfig.forEach((k, v) -> log.debug("setConfig key: [{}], value: [{}]", k, v)); setConfig.forEach((k, v) -> log.debug("setConfig key: [{}], value: [{}]", k, v));
String krb5ConfPath = (String) setConfig.getOrDefault("java.security.krb5.conf", ""); String krb5ConfPath = (String) setConfig.getOrDefault("java.security.krb5.conf", "");
String keytabPath = (String) setConfig.getOrDefault("security.kerberos.login.keytab", ""); String keytabPath = (String) setConfig.getOrDefault("security.kerberos.login.keytab", "");
String principal = (String) setConfig.getOrDefault("security.kerberos.login.principal", ""); 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"); log.info("Simple authentication mode");
return; return;
} }
log.info("Kerberos authentication mode"); log.info("Kerberos authentication mode");
if (krb5ConfPath.isEmpty()) { if (Asserts.isNullString(krb5ConfPath)) {
log.error("Parameter [java.security.krb5.conf] is null or empty."); log.error("Parameter [java.security.krb5.conf] is null or empty.");
return; return;
} }
if (keytabPath.isEmpty()) { if (Asserts.isNullString(keytabPath)) {
log.error("Parameter [security.kerberos.login.keytab] is null or empty."); log.error("Parameter [security.kerberos.login.keytab] is null or empty.");
return; return;
} }
if (principal.isEmpty()) { if (Asserts.isNullString(principal)) {
log.error("Parameter [security.kerberos.login.principal] is null or empty."); log.error("Parameter [security.kerberos.login.principal] is null or empty.");
return; return;
} }
this.reset();
System.setProperty("java.security.krb5.conf", krb5ConfPath); System.setProperty("java.security.krb5.conf", krb5ConfPath);
org.apache.hadoop.conf.Configuration config = new org.apache.hadoop.conf.Configuration(); org.apache.hadoop.conf.Configuration config = new org.apache.hadoop.conf.Configuration();
config.set("hadoop.security.authentication", "Kerberos"); config.set("hadoop.security.authentication", "Kerberos");
......
...@@ -86,7 +86,7 @@ export default (): React.ReactNode => { ...@@ -86,7 +86,7 @@ export default (): React.ReactNode => {
<Paragraph> <Paragraph>
<ul> <ul>
<li> <li>
<Link>Flink 服务化</Link> <Link>代码重构</Link>
</li> </li>
<li> <li>
<Link>数据链路分析</Link> <Link>数据链路分析</Link>
...@@ -1721,6 +1721,15 @@ export default (): React.ReactNode => { ...@@ -1721,6 +1721,15 @@ export default (): React.ReactNode => {
<li> <li>
<Link>新增后端国际化</Link> <Link>新增后端国际化</Link>
</li> </li>
<li>
<Link>新增 kerberos 验证</Link>
</li>
<li>
<Link>新增 K8S 自动部署应用</Link>
</li>
<li>
<Link>新增 Local 模式的 FlinkWebUI</Link>
</li>
<li> <li>
<Link>修复从指定的 savepoint 恢复任务时未设置 savepint 文件路径导致的问题</Link> <Link>修复从指定的 savepoint 恢复任务时未设置 savepint 文件路径导致的问题</Link>
</li> </li>
...@@ -1772,6 +1781,9 @@ export default (): React.ReactNode => { ...@@ -1772,6 +1781,9 @@ export default (): React.ReactNode => {
<li> <li>
<Link>修复引导页的连接错误</Link> <Link>修复引导页的连接错误</Link>
</li> </li>
<li>
<Link>修复 Open API 没有租户</Link>
</li>
<li> <li>
<Link>增加 MysqlCDC 的参数配置</Link> <Link>增加 MysqlCDC 的参数配置</Link>
</li> </li>
......
...@@ -182,7 +182,7 @@ source /etc/profile ...@@ -182,7 +182,7 @@ source /etc/profile
mvn clean install -Dmaven.test.skip=true mvn clean install -Dmaven.test.skip=true
# 如若修改版本,按以下指定即可。flink可支持多版本(1.11-1.16) # 如若修改版本,按以下指定即可。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 文件夹下,即可出现编译后的安装包 切换到 Dinky 根目录下得 build 文件夹下,即可出现编译后的安装包
...@@ -209,7 +209,7 @@ mvn clean install -Dmaven.test.skip=true ...@@ -209,7 +209,7 @@ mvn clean install -Dmaven.test.skip=true
``` ```
>如若修改版本,按以下指定即可。flink可支持多版本(1.11-1.16) >如若修改版本,按以下指定即可。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 文件夹下,即可出现编译后的安装包。 切换到 Dinky 根目录下得 build 文件夹下,即可出现编译后的安装包。
...@@ -226,7 +226,7 @@ npm run build ...@@ -226,7 +226,7 @@ npm run build
#### 后端编译 #### 后端编译
编译maven的时候,移除web profile即可。在-P 后面加: `!web`,如: 编译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 ...@@ -182,7 +182,7 @@ source /etc/profile
mvn clean install -Dmaven.test.skip=true mvn clean install -Dmaven.test.skip=true
# 如若修改版本,按以下指定即可。flink可支持多版本(1.11-1.16) # 如若修改版本,按以下指定即可。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 文件夹下,即可出现编译后的安装包 切换到 Dinky 根目录下得 build 文件夹下,即可出现编译后的安装包
...@@ -209,7 +209,7 @@ mvn clean install -Dmaven.test.skip=true ...@@ -209,7 +209,7 @@ mvn clean install -Dmaven.test.skip=true
``` ```
>如若修改版本,按以下指定即可。flink可支持多版本(1.11-1.16) >如若修改版本,按以下指定即可。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 文件夹下,即可出现编译后的安装包。 切换到 Dinky 根目录下得 build 文件夹下,即可出现编译后的安装包。
...@@ -226,7 +226,8 @@ npm run build ...@@ -226,7 +226,8 @@ npm run build
#### 后端编译 #### 后端编译
编译maven的时候,移除web profile即可。在-P 后面加: `!web`,如: 编译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 @@ ...@@ -1017,6 +1017,5 @@
</pluginManagement> </pluginManagement>
</build> </build>
</profile> </profile>
</profiles> </profiles>
</project> </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