- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Is there a way to monitor the ping/pong packets of the ConnectWebSocket processor?
- Labels:
-
Apache NiFi
Created 08-16-2023 08:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi. I'm using the ConnectWebSocket processor to receive data from a remote server.
The connection is established successfully, but eventually something happens and, even though the processor keeps running normally, the remote server indicates the connection is broken and I stop receiving data.
Is there a way to monitor this connection using the ping/pong packets and some other processor or the nifi logs?
Created 08-21-2023 02:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@galt, in this case, the only solution I could propose is to create a Script in which you develop this exact logic you are looking for. Afterwards, you can execute your script in an ExecuteStreamCommand Processor and wait to see the output.
I suggested ExecuteStreamCommand because you can write the script in any language you desire and then execute it directly in NiFi. The only requirement is to have everything installed on those machines.
Created 08-16-2023 10:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome to the Cloudera Community!
To help you get the best possible solution, I have tagged our NiFi experts @steven-matison @cotopaul who may be able to assist you further.
Please keep us updated on your post, and we hope you find a satisfactory solution to your query.@
Regards,
Diana Torres,Community Moderator
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
Created 08-17-2023 03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@galt,
You could try to set your processors on debug with the hope to have something more written in the logs. Nevertheless, when it comes to network connectivity, I highly recommend you to involve your network team and ask them to identify what is causing the instability in the connection between the source and the target. They have the proper tools and logs to monitor the network flow between the systems. What they have to do is to monitor the traffic coming from your NiFi node and going to your remote server.
Created on 08-19-2023 06:20 PM - edited 08-19-2023 06:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you @cotopaul for the suggestion, but i need to figure out a way to monitor this packets inside NiFi. It's a requirement of my client. They want something like a monitoring tool inside NiFi. I know it will be difficult to do this.... probably it's not possible, because it is not the purpose of NiFi.
The debug mode is activated, with no success on showing the ping/pong packets.
Created 08-21-2023 02:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@galt, in this case, the only solution I could propose is to create a Script in which you develop this exact logic you are looking for. Afterwards, you can execute your script in an ExecuteStreamCommand Processor and wait to see the output.
I suggested ExecuteStreamCommand because you can write the script in any language you desire and then execute it directly in NiFi. The only requirement is to have everything installed on those machines.
Created 08-21-2023 07:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, @cotopaul !!
I'll try this.