Skip to content

Commit

Permalink
Merge pull request #93 from InterestingLab/garyelephant.docs.quick-start
Browse files Browse the repository at this point in the history
Garyelephant.docs.quick start
  • Loading branch information
garyelephant authored Jan 6, 2018
2 parents 41d37eb + c114d55 commit 8e40a43
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name := "Waterdrop"
version := "0.1.0"
version := "1.0.0"
organization := "io.github.interestinglab.waterdrop"

scalaVersion := "2.11.8"
Expand Down
72 changes: 71 additions & 1 deletion docs/zh-cn/quick-start.md
Original file line number Diff line number Diff line change
@@ -1 +1,71 @@
# 快速开始
# 快速开始

> Requirements:
> Spark client
Step1: 下载 waterdrop

Step2: 配置 waterdrop

config/waterdrop-env.sh

Step3: 配置application.conf

config/applicaiton.conf

```
spark {
# Waterdrop defined streaming batch duration in seconds
spark.streaming.batchDuration = 5
# see available properties defined by spark: https://spark.apache.org/docs/latest/configuration.html#available-properties
spark.app.name = "Waterdrop-1"
spark.ui.port = 13000
}
input {
socket {}
}
filter {
}
output {
stdout {}
}
```

Step 4: 启动netcat server用于发送数据

```
nc -l -p 9999
```


Step 5:

启动Waterdrop 接收程序:

```
./bin/start-waterdrop.sh
```

Step 6: 在nc端输入

```
Hello World
```

Step 7: Waterdrop日志打印出

```
+-----------+
|raw_message|
+-----------+
|Hello World|
+-----------+
```

> 无需任何代码、编译、打包,比官方的[Quick Example](https://spark.apache.org/docs/latest/streaming-programming-guide.html#a-quick-example)更简单

0 comments on commit 8e40a43

Please sign in to comment.