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

doc(quick start) modify quick start #25

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ rsqldb 为 RocketMQ Streams 的开发提供了基于 SQL 的开发体验, 让
## Quickstart
### 本地安装docker,[安装链接](https://docs.docker.com/desktop/install/mac-install/)
安装后启动docker
使用docker -v 能查看docker版本即是启动成功。

### 下载rsqldb工程
```shell
Expand All @@ -25,14 +26,21 @@ git clone https://github.com/alibaba/rsqldb.git
cd rsqldb
docker-compose -f docker-compose.yml up
```

此为前台启动,也可使用 docker-compose -f docker-compose.yml up -d 方式后台启动。
### 进入rsqldb-client容器
另开shell窗口,进入rsqldb-client容器,进入方式:
```shell
#查看容器
docker ps
#进入rsqldb-client容器
docker exec -it ${rsqldb-client-containerId} bash
```
#### 提交任务
```shell
sh clientExector.sh submitTask rocketmq.sql
```
任务为向RocketMQ写入数据,过滤出数据中field_1=1的数据;

rocketmq.sql任务从RocketMQ中rsqldb-source topic中读取数据,过滤出数据中首字段为1的数据,然后将结果写回到RocketMQ
中的rsqldb-sink topic中。
#### 开始任务
```shell
sh clientExector.sh startTask
Expand Down
3 changes: 3 additions & 0 deletions docs/other_quick_start/本地工程启动.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 工程本地运行

### 在本地安装RocketMQ-Streams
rsqldb依赖的RocketMQ-Streams版本为1.0.2-preview-SNAPSHOT(RocketMQ-Streams近期会做一次发版,发版之后省略该步骤)。

### 启动服务端
- 启动rsqldb-runner执行任务;

Expand Down