<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to : HTTP Stream in flink in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100224#M63243</link>
    <description>&lt;P&gt;Thanks a lot &lt;A rel="user" href="https://community.cloudera.com/users/802/rmetzger.html" nodeid="802"&gt;@Robert Metzger&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2016 14:40:09 GMT</pubDate>
    <dc:creator>hemant_dindi</dc:creator>
    <dc:date>2016-01-05T14:40:09Z</dc:date>
    <item>
      <title>How to : HTTP Stream in flink</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100217#M63236</link>
      <description>&lt;P&gt;Which methods/objects does Flink provide in order to enable users to read HTTP streams?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:54:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100217#M63236</guid>
      <dc:creator>hemant_dindi</dc:creator>
      <dc:date>2022-09-16T09:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to : HTTP Stream in flink</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100218#M63237</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1134/hemantdindi.html" nodeid="1134"&gt;@Hemant  Kumar&lt;/A&gt;&lt;P&gt;The best information on this topic can be found on flink site. &lt;A href="https://flink.apache.org/news/2015/02/09/streaming-example.html"&gt;https://flink.apache.org/news/2015/02/09/streaming...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dataartisans/flink-streaming-demo"&gt;https://github.com/dataartisans/flink-streaming-de...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Not sure if it helps to customize for HTTP&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 12:16:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100218#M63237</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-21T12:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to : HTTP Stream in flink</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100219#M63238</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;&lt;/A&gt;For HTTP, I am in a state where I have to write a custom SourceFunction. Before I try it, I am exploring if there is a possibility to Handle HTTP Requests by using any of the existing StreamExecutionEnvironment functions/objects.&lt;/P&gt;&lt;P&gt;I am also trying to handle HTTP Stream for Flink using NiFi Connector as mentioned &lt;A href="https://github.com/apache/flink/blob/master/flink-streaming-connectors/flink-connector-nifi/src/main/java/org/apache/flink/streaming/connectors/nifi/examples/NiFiSourceTopologyExample.java"&gt;here &lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope either of these will help me in achieving desired results. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 13:59:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100219#M63238</guid>
      <dc:creator>hemant_dindi</dc:creator>
      <dc:date>2015-12-21T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to : HTTP Stream in flink</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100220#M63239</link>
      <description>&lt;P&gt;+ &lt;A rel="user" href="https://community.cloudera.com/users/802/rmetzger.html" nodeid="802"&gt;@Robert Metzger&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 14:20:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100220#M63239</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-12-21T14:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to : HTTP Stream in flink</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100221#M63240</link>
      <description>&lt;P&gt;Sorry for the late reply. As I said in the other thread, I would recommend using a SourceFunction here. Feel free to post your code here as well, I can review it and give some hints for improving it.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2015 23:33:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100221#M63240</guid>
      <dc:creator>rmetzger1</dc:creator>
      <dc:date>2015-12-21T23:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to : HTTP Stream in flink</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100222#M63241</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/802/rmetzger.html" nodeid="802"&gt;@Robert Metzger&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I have prepared the Custom HTTPJSONStream reader and here is the attached code.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/1016-loganalytics.txt"&gt;loganalytics.txt&lt;/A&gt;-&amp;gt; This is the main Class which fetches the data from the custom source. In our case its JSON via HTTP url.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/1013-httpjsonstream.txt"&gt;httpjsonstream.txt&lt;/A&gt; -&amp;gt; This class implements the SourceFunction and provides a SourceContext of custom-type FlinkJSONObject&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/1014-flinkjsonobject.txt"&gt;flinkjsonobject.txt&lt;/A&gt; -&amp;gt; This class uses java.net.* and javax.json.* to connect to provided URL and get the content in JSON Object format.&lt;/P&gt;&lt;P&gt;The logic can be applied on the JSONObject to get the desired results.&lt;/P&gt;&lt;P&gt;Please suggest if any changes can be made.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 02:40:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100222#M63241</guid>
      <dc:creator>hemant_dindi</dc:creator>
      <dc:date>2015-12-23T02:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to : HTTP Stream in flink</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100223#M63242</link>
      <description>&lt;P&gt;Thank you for posting the code here &lt;A rel="user" href="https://community.cloudera.com/users/1134/hemantdindi.html" nodeid="1134"&gt;@Hemant Kumar&lt;/A&gt;. Sorry for the delay, I've now looked at and it looks good.
If you want to optimize the code, I would try to move the code from the FlinkJSONObject constructor into the HTTPJSONStream class. It seems that the do/while loop is actually controlled from within the FlinkJSONObject.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 16:32:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100223#M63242</guid>
      <dc:creator>rmetzger1</dc:creator>
      <dc:date>2016-01-04T16:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to : HTTP Stream in flink</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100224#M63243</link>
      <description>&lt;P&gt;Thanks a lot &lt;A rel="user" href="https://community.cloudera.com/users/802/rmetzger.html" nodeid="802"&gt;@Robert Metzger&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 14:40:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-HTTP-Stream-in-flink/m-p/100224#M63243</guid>
      <dc:creator>hemant_dindi</dc:creator>
      <dc:date>2016-01-05T14:40:09Z</dc:date>
    </item>
  </channel>
</rss>

