Skip to content

Commit

Permalink
[fix](fe_plugins) update fe plugins' dependency to fe 1.0-SNAPSHOT (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman authored Jul 25, 2022
1 parent 829d534 commit d906644
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 11 deletions.
6 changes: 3 additions & 3 deletions docs/en/docs/ecosystem/audit-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ After deployment is complete, and before installing the plugin, you need to crea
create table doris_audit_tbl__
(
query_id varchar(48) comment "Unique query id",
time datetime not null comment "Query start time",
`time` datetime not null comment "Query start time",
client_ip varchar(32) comment "Client IP",
user varchar(64) comment "User name",
db varchar(96) comment "Database of this query",
Expand All @@ -76,8 +76,8 @@ create table doris_audit_tbl__
peak_memory_bytes bigint comment "Peak memory bytes used on all backends of this query",
stmt string comment "The original statement, trimed if longer than 2G"
) engine=OLAP
duplicate key(query_id, time, client_ip)
partition by range(time) ()
duplicate key(query_id, `time`, client_ip)
partition by range(`time`) ()
distributed by hash(query_id) buckets 1
properties(
"dynamic_partition.time_unit" = "DAY",
Expand Down
8 changes: 4 additions & 4 deletions docs/zh-CN/docs/ecosystem/audit-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ auditloader plugin的配置位于`${DORIS}/fe_plugins/auditloader/src/main/assem
create table doris_audit_tbl__
(
query_id varchar(48) comment "Unique query id",
time datetime not null comment "Query start time",
`time` datetime not null comment "Query start time",
client_ip varchar(32) comment "Client IP",
user varchar(64) comment "User name",
db varchar(96) comment "Database of this query",
Expand All @@ -76,8 +76,8 @@ create table doris_audit_tbl__
peak_memory_bytes bigint comment "Peak memory bytes used on all backends of this query",
stmt string comment "The original statement, trimed if longer than 2G "
) engine=OLAP
duplicate key(query_id, time, client_ip)
partition by range(time) ()
duplicate key(query_id, `time`, client_ip)
partition by range(`time`) ()
distributed by hash(query_id) buckets 1
properties(
"dynamic_partition.time_unit" = "DAY",
Expand All @@ -98,4 +98,4 @@ properties(

之后,连接到 Doris 后使用 `INSTALL PLUGIN` 命令完成安装。安装成功后,可以通过 `SHOW PLUGINS` 看到已经安装的插件,并且状态为 `INSTALLED`

完成后,插件会不断的以指定的时间间隔将审计日志插入到这个表中。
完成后,插件会不断的以指定的时间间隔将审计日志插入到这个表中。
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public static DigitalVersion fromString(String version) throws IllegalArgumentEx
int revision = Integer.parseInt(list[2].trim());

if (major >= 100 || minor >= 100 || revision >= 100) {
throw new IllegalArgumentException("Illegal version format: " + version);
throw new IllegalArgumentException(
"Illegal version format: " + version + ". Expected: major.minor.revision");
}

return new DigitalVersion((byte) major, (byte) minor, (byte) revision);
Expand Down
2 changes: 1 addition & 1 deletion fe_plugins/auditloader/src/main/assembly/plugin.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
name=AuditLoader
type=AUDIT
description=load audit log to olap load, and user can view the statistic of queries
version=0.13.1
version=1.0.0
java.version=1.8.0
classname=org.apache.doris.plugin.audit.AuditLoaderPlugin
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private HttpURLConnection getConnection(String urlStr, String label) throws IOEx

conn.addRequestProperty("label", label);
conn.addRequestProperty("max_filter_ratio", "1.0");
conn.addRequestProperty("columns", "query_id, time, client_ip, user, db, state, query_time, scan_bytes," +
conn.addRequestProperty("columns", "query_id, `time`, client_ip, user, db, state, query_time, scan_bytes," +
" scan_rows, return_rows, stmt_id, is_query, frontend_ip, cpu_time_ms, sql_hash, sql_digest, peak_memory_bytes, stmt");

conn.setDoOutput(true);
Expand Down
17 changes: 16 additions & 1 deletion fe_plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ under the License.
</modules>
<properties>
<log4j2.version>2.17.1</log4j2.version>
<doris.version>0.15-SNAPSHOT</doris.version>
<doris.version>1.0-SNAPSHOT</doris.version>
<project.scm.id>github</project.scm.id>
</properties>
<profiles>
Expand All @@ -93,6 +93,21 @@ under the License.
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>general-env</id>
<activation>
<property>
<name>!env.CUSTOM_MAVEN_REPO</name>
</property>
</activation>
<repositories>
<!-- for java-cup -->
<repository>
<id>cloudera-public</id>
<url>https://repository.cloudera.com/artifactory/public/</url>
</repository>
</repositories>
</profile>
</profiles>
<dependencyManagement>
<dependencies>
Expand Down

0 comments on commit d906644

Please sign in to comment.