-
Notifications
You must be signed in to change notification settings - Fork 25
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
How to create a single segment stream for ByteWriter? #408
Comments
PravegaCtl provides a way to create a stream with a specific segment count. It is not listed in the doc but here at pravega-client-rust/pravegactl/src/main.rs#L113. Also, both Python and NodeJS bindings allow users to create a stream with a specific segment count. |
Thanks @thekingofcity that's helpful. I'm actually trying to create a thin wrapper around the client that I can call from a C++ application. I'm trying to get a simple write and read working in Rust first. I couldn't get the event API to work - it kept hanging so wanted to try the byte API. Both of these are using a standalone server (0.13.0) with JDWP changed to 9012 (default is already in use/blocked on PC). Any idea why this example hangs after writing the payload (if seek to tail is uncommented, it hangs on this call)?
Outputs:
|
Funny, yes, I am on Windows, and I'd just gone back through all the releases and it works on 0.9.1, fails on 0.10.2 (didn't try the inbetween versions). I'll have a look at the Go binding. I assume building the bindings is what generates the c library? |
From the README yes it should generate a c library. @vangork @CharlieLChen
|
I actually couldn't get the build to succeed.
Maybe that'd be better off being raised as an error in the fork @vangork ? |
we never build the go-binding-client on windows, maybe you can try to build it again on Linux |
I need this to work on Windows, so that's out of the question. I've gone with my own FFI wrapper with the basic functionality I need, but appreciate the suggestion of trying the Go client. |
Great to hear about your achievements. Looks like all your problems are solved in this issue :) |
The
ByteWriter
requires a single segment stream as per a comment in the docs:I can see in
pravega-admin
that after creating a scope and a stream usingpravega-cli
, I have 4 segments:I cannot find anywhere in the docs or examples, either for the Rust client or Pravega generally, how to set the segment count to 1. Please could you let me know how to do this, and perhaps also update the docs also?
The text was updated successfully, but these errors were encountered: