tree: 8ed1c26309926dfb69011ce1f5ab6ba6401925c8 [path history] [tgz]
  1. README.md
  2. src/
  3. tests/
heron/io/dlog/README.md

Apache BookKeeper/DistributedLog

This directory provides the common utils for accessing distributedlog streams.

Util

Utils is a tool for copying data from local filesytem to dlog or copy dlog stream to local filesytem. This tool is useful for verifying dlog based downloader and uploader.

  1. Build the tool.
bazel build heron/io/dlog/src/java:dlog-util
  1. You can run a bookkeeper sandbox with 3 bookies locally following the instructions here.

  2. Upload a file to dlog.

java -jar ./bazel-genfiles/heron/io/dlog/src/java/dlog-util.jar distributedlog://127.0.0.1/path/to/stream /path/to/file
  1. Download a dlog stream as a file
java -jar ./bazel-genfiles/heron/io/dlog/src/java/dlog-util.jar distributedlog://127.0.0.1/path/to/stream /path/to/file