Skip to content
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

Sample json of the ControlEvent #68

Open
ccbeloy opened this issue May 9, 2020 · 2 comments
Open

Sample json of the ControlEvent #68

ccbeloy opened this issue May 9, 2020 · 2 comments

Comments

@ccbeloy
Copy link

ccbeloy commented May 9, 2020

Hi,

Can someone provide the sample ControlEvent json that can be push to like Kafka topic please?
I'm not able to make sense the MetadataControlEvent.builder.

Thanks,
Calvin

@ccbeloy
Copy link
Author

ccbeloy commented May 9, 2020

@haoch
I'm getting exception with below sample control event json:
{"addedExecutionPlanMap": {"id14": "from inputStream [ticker == "AAPL"] insert into outputStream"}}

Deserialized thru ControlEventSchema

ERROR:
org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class org.apache.flink.streaming.siddhi.control.ControlMessage]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?

@SMART2016
Copy link

@haoch
I'm getting exception with below sample control event json:
{"addedExecutionPlanMap": {"id14": "from inputStream [ticker == "AAPL"] insert into outputStream"}}

Deserialized thru ControlEventSchema

ERROR:
org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class org.apache.flink.streaming.siddhi.control.ControlMessage]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?

Any breakthrough on this ... I am also not clear on the control stream input message ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants