-
Notifications
You must be signed in to change notification settings - Fork 62
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
[Issue-76] update samples to new builder API #79
Conversation
Signed-off-by: Eron Wright <eronwright@gmail.com>
I opened this PR as a heads-up, but frankly I am still testing the samples so I wouldn't recommend merging yet. |
Signed-off-by: Eron Wright <eronwright@gmail.com>
LOG.info("Succesfully created stream: {}", streamId); | ||
Stream streamId = getStreamId(); | ||
|
||
try(StreamManager streamManager = StreamManager.create(pravegaConfig.getClientConfig())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we are duplicating Utils.createStream()
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was unable to reuse Utils
here because it is in the flink-examples
project and so there's way to use it from the anomaly-detection
project. Personally I don't think it important to consolidate it.
Happy to report that the anomaly detector is working:
|
- set default scope explicitly to work better in Nautilus environment - updated help text of anomaly detector - set stream scale policy to 1 for event time-based apps - fixed program output of Java-based turbine processor Signed-off-by: Eron Wright <eronwright@gmail.com>
@vijikarthi I updated each sample to use the following approach to creating the
Meanwhile, the default stream name should be unqualified. This approach will work best when a default scope ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 LGTM
- rework samples to use the new builder API of the Flink connector - use `PravegaConfig` to establish a Pravega context (connection info, default scope) - set stream scale policy to 1 for event time-based apps - updated help text of anomaly app Signed-off-by: Eron Wright <eronwright@gmail.com>
Change Log
Utils
class to create streams as neededHow to Test