2019-12-10 20:33:24 +08:00
|
|
|
# Ray Streaming
|
|
|
|
|
|
|
|
1. Build streaming java
|
|
|
|
* build ray
|
2019-12-22 10:56:05 +08:00
|
|
|
* `bazel build //java:gen_maven_deps`
|
|
|
|
* `cd java && mvn clean install -Dmaven.test.skip=true && cd ..`
|
2019-12-10 20:33:24 +08:00
|
|
|
* build streaming
|
2019-12-22 10:56:05 +08:00
|
|
|
* `bazel build //streaming/java:gen_maven_deps`
|
2019-12-10 20:33:24 +08:00
|
|
|
* `mvn clean install -Dmaven.test.skip=true`
|
|
|
|
|
2019-12-22 10:56:05 +08:00
|
|
|
2. Build ray python will build ray streaming python.
|
2019-12-10 20:33:24 +08:00
|
|
|
|
|
|
|
3. Run examples
|
2019-12-22 10:56:05 +08:00
|
|
|
```bash
|
|
|
|
# c++ test
|
|
|
|
cd streaming/ && bazel test ...
|
|
|
|
sh src/test/run_streaming_queue_test.sh
|
|
|
|
cd ..
|
2019-12-10 20:33:24 +08:00
|
|
|
|
2019-12-22 10:56:05 +08:00
|
|
|
# python test
|
|
|
|
pushd python/ray/streaming/
|
|
|
|
pushd examples
|
|
|
|
python simple.py --input-file toy.txt
|
|
|
|
popd
|
|
|
|
pushd tests
|
|
|
|
pytest .
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
# java test
|
|
|
|
cd streaming/java/streaming-runtime
|
|
|
|
mvn test
|
|
|
|
```
|