Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #187]Merge from Snapshot 1.0.4 #186

Merged
merged 35 commits into from
Jul 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2db9d36
add kafka module
j-ching Mar 15, 2022
f65653f
add kafka module
j-ching Mar 15, 2022
4565739
add licence for some files
j-ching Mar 15, 2022
9332635
Merge pull request #137 from program-0/snapshot-1.0.2
yuanxiaodong Mar 15, 2022
6664b4b
GitBook: [#2] No subject
j-ching Mar 30, 2022
713e32b
GitBook: [#3] No subject
j-ching Mar 30, 2022
7ef9c4f
SDK增加udaf的支持
j-ching May 5, 2022
0971df8
SDK增加UDAF的支持
j-ching May 5, 2022
6874f5a
Merge branch 'snapshot-1.0.2' of https://github.com/j-j-cheng/rocketm…
j-ching May 5, 2022
3215287
SDK增加udaf的支持
j-ching May 5, 2022
829b09e
SDK增加udaf的支持
j-ching May 5, 2022
a740bdd
Snapshot 1.0.2 (#148)
j-ching May 5, 2022
56c1135
snapshot 1.0.3
j-ching May 17, 2022
e4cfdb7
Merge branch 'snapshot-1.0.3' of https://github.com/apache/rocketmq-s…
j-ching May 17, 2022
cd00597
构建snapshot1.0.3
j-ching May 17, 2022
64cdd64
构建snapshot1.0.3
j-ching May 18, 2022
1cd2dd0
Merge pull request #157 from j-j-cheng/snapshot-1.0.3
yuanxiaodong May 18, 2022
93d7f77
ConfigurableComponent insert and query
ni-ze May 23, 2022
f5a1380
merge 0.1
ni-ze May 23, 2022
9d3ae58
merge 1.0
ni-ze May 23, 2022
a5a6ddd
merge from snapshot-1.0.3
ni-ze May 23, 2022
a539688
merge from upstream/snapshot-1.0.3
ni-ze May 23, 2022
840c956
feat(db) remove db dependency besides channel-db
ni-ze May 26, 2022
ef6f7cf
Merge branch 'replaceDB' into devForEnterprise
ni-ze May 26, 2022
5e91a37
1.0.2-preview-SNAPSHOT -> 1.0.3-preview-SNAPSHOT
ni-ze May 27, 2022
ff92d26
fix(example) join example
ni-ze May 27, 2022
f1d507c
Merge branch 'replaceDB' into devForEnterprise
ni-ze May 30, 2022
4d94b41
make FileSourceExample runnable
ni-ze May 30, 2022
5a23697
fix(example) join example
ni-ze May 30, 2022
0bcaf5b
modify topic
ni-ze May 30, 2022
24b5bf9
remove mini batch
ni-ze May 30, 2022
aadf7ea
make RocketMQWindowExample runnable
ni-ze May 31, 2022
42abb20
merge from replaceDB
ni-ze May 31, 2022
bc38da9
Merge branch 'main' into snapshot-1.0.4
ni-ze Jul 2, 2022
ce2f98b
merge from main
ni-ze Jul 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 29 additions & 95 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -31,56 +33,6 @@
<packaging>pom</packaging>
<url>https://rocketmq.apache.org/</url>


<scm>
<url>git@github.com:apache/rocketmq-streams.git</url>
<connection>scm:git:git@github.com:apache/rocketmq-streams.git</connection>
<developerConnection>scm:git:git@github.com:apache/rocketmq-streams.git</developerConnection>
<tag>1.0.0-preview</tag>
</scm>

<mailingLists>
<mailingList>
<name>Development List</name>
<subscribe>dev-subscribe@rocketmq.apache.org</subscribe>
<unsubscribe>dev-unsubscribe@rocketmq.apache.org</unsubscribe>
<post>dev@rocketmq.apache.org</post>
</mailingList>
<mailingList>
<name>User List</name>
<subscribe>users-subscribe@rocketmq.apache.org</subscribe>
<unsubscribe>users-unsubscribe@rocketmq.apache.org</unsubscribe>
<post>users@rocketmq.apache.org</post>
</mailingList>
<mailingList>
<name>Commits List</name>
<subscribe>commits-subscribe@rocketmq.apache.org</subscribe>
<unsubscribe>commits-unsubscribe@rocketmq.apache.org</unsubscribe>
<post>commits@rocketmq.apache.org</post>
</mailingList>
</mailingLists>

<developers>
<developer>
<id>Apache RocketMQ</id>
<name>Apache RocketMQ of ASF</name>
<url>https://rocketmq.apache.org/</url>
</developer>
</developers>

<organization>
<name>Apache Software Foundation</name>
<url>http://www.apache.org</url>
</organization>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>

<modules>
<module>rocketmq-streams-commons</module>
<module>rocketmq-streams-transport-minio</module>
Expand Down Expand Up @@ -112,13 +64,13 @@
<java.version>1.8</java.version>
<java.encoding>UTF-8</java.encoding>
<project.build.sourceEncoding>${java.encoding}</project.build.sourceEncoding>
<log4j.version>1.2.17</log4j.version>
<commons-logging.version>1.1</commons-logging.version>
<spring.version>3.2.13.RELEASE</spring.version>
<spring.version>5.1.14.RELEASE</spring.version>
<auto-service.version>1.0-rc5</auto-service.version>
<mysql-connector.version>5.1.40</mysql-connector.version>
<fastjson.version>1.2.83</fastjson.version>
<quartz.version>2.3.2</quartz.version>

<httpclient.version>4.5.13</httpclient.version>
<commons-io.version>2.7</commons-io.version>
<junit.version>4.13.1</junit.version>
Expand All @@ -140,8 +92,10 @@
<commons-lang.version>2.5</commons-lang.version>
<elasticsearch.version>7.4.0</elasticsearch.version>
<kafka.version>1.1.0</kafka.version>
<maven.javadoc.skip>true</maven.javadoc.skip>
<paho.version>1.2.2</paho.version>
<kryo.version>5.3.0</kryo.version>
<fst.version>2.56</fst.version>
<slf4j-log4j12.version>1.7.36</slf4j-log4j12.version>
</properties>


Expand All @@ -167,10 +121,7 @@
<exclude>build_without_test.sh</exclude>
<exclude>NOTICE</exclude>
<exclude>LICENSE</exclude>
<exclude>README.md</exclude>
<exclude>README-chinese.md</exclude>
<exclude>QUICKSTART.md</exclude>
<exclude>quick_start.md</exclude>
<exclude>*.md</exclude>
<exclude>.github/**</exclude>
<exclude>*/target/**</exclude>
<exclude>*/*.iml</exclude>
Expand Down Expand Up @@ -202,18 +153,6 @@
<artifactId>versions-maven-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<formats>
<format>html</format>
<format>xml</format>
</formats>
<check />
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -260,11 +199,6 @@
<artifactId>rocketmq-streams-commons</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-streams-channel-es</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-streams-channel-mqtt</artifactId>
Expand Down Expand Up @@ -305,11 +239,6 @@
<artifactId>rocketmq-streams-db-operator</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-streams-dim</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-streams-filter</artifactId>
Expand All @@ -331,11 +260,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-streams-script-python</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-streams-serviceloader</artifactId>
Expand Down Expand Up @@ -366,7 +290,6 @@
<artifactId>rocketmq-streams-channel-rocketmq</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-streams-examples</artifactId>
Expand Down Expand Up @@ -398,12 +321,6 @@
<version>${rocketmq.version}</version>
</dependency>

<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-tools</artifactId>
<version>${rocketmq.version}</version>
</dependency>

<!-- ================================================= -->
<!-- tool library -->
<!-- ================================================= -->
Expand Down Expand Up @@ -437,9 +354,9 @@
</dependency>

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j-log4j12.version}</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -586,6 +503,12 @@
<artifactId>elasticsearch-rest-client</artifactId>
<version>${elasticsearch.version}</version>
</dependency>

<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.12</artifactId>
Expand All @@ -598,6 +521,17 @@
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
<version>${paho.version}</version>
</dependency>

<dependency>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
<version>${fst.version}</version>
</dependency>
<dependency>
<groupId>com.esotericsoftware</groupId>
<artifactId>kryo</artifactId>
<version>${kryo.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
4 changes: 3 additions & 1 deletion rocketmq-streams-channel-db/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.rocketmq</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public abstract class AbstractMultiTableSink extends EnhanceDBSink {
protected transient AtomicLong messageCount = new AtomicLong(0);
protected transient MultiTableSplitFunction<IMessage> multiTableSplitFunction;

public AbstractMultiTableSink(){
public AbstractMultiTableSink() {
}

public AbstractMultiTableSink(String url, String userName, String password) {
Expand All @@ -44,16 +44,16 @@ public AbstractMultiTableSink(String url, String userName, String password) {
}

@Override
protected boolean initConfigurable(){
protected boolean initConfigurable() {
Iterator<EnhanceDBSink> it = tableSinks.values().iterator();
while(it.hasNext()){
while (it.hasNext()) {
it.next().initConfigurable();
}
return true;
}

@Override
public boolean batchAdd(IMessage message, ISplit split) {
public boolean batchAdd(IMessage message, ISplit<?, ?> split) {

EnhanceDBSink sink = getOrCreateDBSink(split.getQueueId());
boolean success = sink.batchAdd(message, split);
Expand All @@ -68,7 +68,7 @@ public boolean batchAdd(IMessage message, ISplit split) {

@Override
public boolean batchAdd(IMessage message) {
ISplit split = getSplitFromMessage(message);
ISplit<?, ?> split = getSplitFromMessage(message);
return batchAdd(message, split);
}

Expand Down Expand Up @@ -142,7 +142,7 @@ protected EnhanceDBSink getOrCreateDBSink(String splitId) {

protected abstract String createTableName(String splitId);

protected abstract ISplit getSplitFromMessage(IMessage message);
protected abstract ISplit<?, ?> getSplitFromMessage(IMessage message);

protected class SingleDBSinkCache extends MessageCache<IMessage> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class DynamicMultipleDBSink extends AbstractMultiTableSink implements IAf
String logicTableName;
String fieldName;

public DynamicMultipleDBSink(){
public DynamicMultipleDBSink() {
}

public String getLogicTableName() {
Expand Down Expand Up @@ -63,21 +63,21 @@ protected String createTableName(String splitId) {
}

@Override
protected ISplit getSplitFromMessage(IMessage message) {
protected ISplit<?, ?> getSplitFromMessage(IMessage message) {
return this.multiTableSplitFunction.createSplit(message);
}


@Override
public void doProcessAfterRefreshConfigurable(IConfigurableService configurableService) {

if(this.multiTableSplitFunction == null){
if (this.multiTableSplitFunction == null) {

this.multiTableSplitFunction = new MultiTableSplitFunction<IMessage>() {
@Override
public ISplit createSplit(IMessage message) {
public ISplit<?, ?> createSplit(IMessage message) {
return new DynamicMultipleDBSplit(message.getMessageBody().getString(fieldName), logicTableName);
}

@Override
public String createTableFromSplitId(String splitId) {
return splitId;
Expand All @@ -86,6 +86,5 @@ public String createTableFromSplitId(String splitId) {

}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected String createTableName(String splitId) {
}

@Override
protected ISplit getSplitFromMessage(IMessage message) {
protected ISplit<?, ?> getSplitFromMessage(IMessage message) {
return multiTableSplitFunction.createSplit(message);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected String createTableName(String splitId) {
}

@Override
protected ISplit getSplitFromMessage(IMessage message) {
protected ISplit<?, ?> getSplitFromMessage(IMessage message) {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected String createTableName(String splitId) {
}

@Override
protected ISplit getSplitFromMessage(IMessage message) {
protected ISplit<?, ?> getSplitFromMessage(IMessage message) {
return null;
}
}
27 changes: 10 additions & 17 deletions rocketmq-streams-channel-es/pom.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-streams</artifactId>
<version>1.0.2-preview-SNAPSHOT</version>
</parent>
</parent>
<artifactId>rocketmq-streams-channel-es</artifactId>
<name>ROCKETMQ STREAMS :: channel-es</name>
<packaging>jar</packaging>
Expand All @@ -39,6 +26,12 @@
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-streams-configurable</artifactId>
</dependency>

<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
</dependency>

</dependencies>
<repositories>
<repository>
Expand Down
Loading