Flink error;

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Flink error;

Aissa Elaffani
Hello Guys,
I hope you are well. I am trying to build a pipeline with apache Kafka and apache Flink. So i am sendig some data to a kafka topic, the data is generated in Json format .. then i try to consume it, so I tried to deserialize the message but I think there is a probleme, because when i want to print the deserialized results, i got some weird syntax "sensors.SensorData@49820beb". I am going to show you some pictures fom the project and i hope you can figure it out.


error.JPG (50K) Download Attachment
error2.JPG (59K) Download Attachment
error3.JPG (27K) Download Attachment
error5.JPG (52K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Flink error;

Sivaprasanna S
It is working as expected. If I'm right, the print operator will simply call the `.toString()` on the input element. If you want to visualize your payload in JSON format, override the toString() in `SensorData` class with the code to form your payload as a JSON representation using ObjectMapper or lombok plugin, or something like that.


On Sun, May 10, 2020 at 8:43 AM Aissa Elaffani <[hidden email]> wrote:
Hello Guys,
I hope you are well. I am trying to build a pipeline with apache Kafka and apache Flink. So i am sendig some data to a kafka topic, the data is generated in Json format .. then i try to consume it, so I tried to deserialize the message but I think there is a probleme, because when i want to print the deserialized results, i got some weird syntax "sensors.SensorData@49820beb". I am going to show you some pictures fom the project and i hope you can figure it out.


-----------------------------------------------------------------------------------------

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

 

Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the organization. Any information on shares, debentures or similar instruments, recommended product pricing, valuations and the like are for information purposes only. It is not meant to be an instruction or recommendation, as the case may be, to buy or to sell securities, products, services nor an offer to buy or sell securities, products or services unless specifically stated to be so on behalf of the Flipkart group. Employees of the Flipkart group of companies are expressly required not to make defamatory statements and not to infringe or authorise any infringement of copyright or any other legal right by email communications. Any such communication is contrary to organizational policy and outside the scope of the employment of the individual concerned. The organization will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising.

 

Our organization accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

-----------------------------------------------------------------------------------------