Skip to content

Add a quick start which contain some examples. #68

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

Merged
merged 14 commits into from
Sep 25, 2021
Merged

Add a quick start which contain some examples. #68

merged 14 commits into from
Sep 25, 2021

Conversation

ni-ze
Copy link
Contributor

@ni-ze ni-ze commented Sep 17, 2021

Add a quick start which contain some examples.

quick_start.md Outdated
## rocketmq-streams 快速搭建
---
### 前言
本文档主要介绍如何基于rocketmq-streams快熟搭建流处理任务,搭建过程中某些例子会用到rocketmq,可以参考[rocketmq搭建文档见文档](https://rocketmq.apache.org/docs/quick-start/)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentense has a typo, please check 快熟.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected

quick_start.md Outdated
## rocketmq-streams 快速搭建
---
### 前言
本文档主要介绍如何基于rocketmq-streams快熟搭建流处理任务,搭建过程中某些例子会用到rocketmq,可以参考[rocketmq搭建文档见文档](https://rocketmq.apache.org/docs/quick-start/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以参考[rocketmq搭建文档],见文档多余

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected

### 2、分时间段,统计分组中某字段的和

#### 2.1 安装rocketmq
可以参考[rocketmq搭建文档见文档](https://rocketmq.apache.org/docs/quick-start/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上,“见文档”多余

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected

```java
public void findMax() {
DataStreamSource source = StreamBuilder.dataStream("ns-1", "pl-1");
source.fromFile("/Users/nize/result.txt", false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better not to appear personal path.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected

Copy link
Contributor

@duhenglucky duhenglucky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

缺少了远端checkpoint 的支持

@ni-ze
Copy link
Contributor Author

ni-ze commented Sep 23, 2021

缺少了远端checkpoint 的支持

already supported In the latest code.

import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import java.util.*; It is not recommended to use * to aggregate all imports.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all corrected.


可查看原数据文件,eventTime为时间字段,简单检查后上述结果与预期相符合。

#### 3.2、统计某段时间窗口内,被点击次数最多的网页
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add chapter 3.3 to describe the scale in/out ability of rocketmq-streams

@duhenglucky duhenglucky merged commit 3612f79 into apache:main Sep 25, 2021
duhenglucky pushed a commit that referenced this pull request Oct 22, 2021
* a runnable window example reading data from rocketmq.

* add quick start

* modify quick_start

* modify example.

* modify and add another pageclick example.

* remove private path

* fix spelling mistakes

* use mysql as remote checkpoint storage

* modify code style of import class

* modify annotation

Co-authored-by: nize <[email protected]>
duhenglucky pushed a commit that referenced this pull request Oct 22, 2021
* a runnable window example reading data from rocketmq.

* add quick start

* modify quick_start

* modify example.

* modify and add another pageclick example.

* remove private path

* fix spelling mistakes

* use mysql as remote checkpoint storage

* modify code style of import class

* modify annotation

Co-authored-by: nize <[email protected]>
ni-ze added a commit to ni-ze/rocketmq-streams that referenced this pull request Oct 7, 2022
* a runnable window example reading data from rocketmq.

* add quick start

* modify quick_start

* modify example.

* modify and add another pageclick example.

* remove private path

* fix spelling mistakes

* use mysql as remote checkpoint storage

* modify code style of import class

* modify annotation

Co-authored-by: nize <[email protected]>
ni-ze added a commit to ni-ze/rocketmq-streams that referenced this pull request Oct 7, 2022
* a runnable window example reading data from rocketmq.

* add quick start

* modify quick_start

* modify example.

* modify and add another pageclick example.

* remove private path

* fix spelling mistakes

* use mysql as remote checkpoint storage

* modify code style of import class

* modify annotation

Co-authored-by: nize <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants