<?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 Read from sharded rabbitmq and write to partitioned kafka with only once semantics. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-sharded-rabbitmq-and-write-to-partitioned-kafka/m-p/98099#M11594</link>
    <description>&lt;P&gt;Problem : Read from sharded rabbitmq and write to kafka with only once semantics.&lt;/P&gt;&lt;P&gt;==&amp;gt; I am planning to use Trident for the same.&lt;/P&gt;&lt;LI&gt;I have used RabbitMq spout (storm) which has implemented  BaseRichSpout  (&lt;A href="https://github.com/ppat/storm-rabbitmq" target="_blank"&gt;https://github.com/ppat/storm-rabbitmq&lt;/A&gt;)&lt;OL&gt;&lt;LI&gt;I can see that it is a non transactional spout, and hence "would not" support only once semantics of Trident. Am I correct?&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;If I need to build an OpaqueTransactionalSpout for Rabbitmq, Can you give me some hints on how to start or some examples to look into&lt;/LI&gt;&lt;LI&gt;I wanted to write unit test to check if my Trident Topology supports "Exactly once semantic". Are there any sample  Unit tests/examples. The reason I want to write the tests  because "Exactly once semantics" depend on Spout also not just on Trident or Storm with my understanding.&lt;/LI&gt;&lt;LI&gt;I have to support sharded Rabbitmq and hence how to connect to more than one queue. I am thinking of using Stream.merge(List&amp;lt;Streams&amp;gt;) after creating once stream for each queue, Is this good idea to do?. Let me know your thoughts on the same.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://nathanmarz.github.io/storm/doc/storm/trident/TridentTopology.html#merge%28backtype.storm.tuple.Fields,%20java.util.List%29" target="_blank"&gt;https://nathanmarz.github.io/storm/doc/storm/tride...&lt;/A&gt;&lt;/LI&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/528/rsriharsha.html" nodeid="528" target="_blank"&gt;@Ram Sriharsha&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:51:46 GMT</pubDate>
    <dc:creator>Narendra_Bidari</dc:creator>
    <dc:date>2022-09-16T09:51:46Z</dc:date>
    <item>
      <title>Read from sharded rabbitmq and write to partitioned kafka with only once semantics.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-sharded-rabbitmq-and-write-to-partitioned-kafka/m-p/98099#M11594</link>
      <description>&lt;P&gt;Problem : Read from sharded rabbitmq and write to kafka with only once semantics.&lt;/P&gt;&lt;P&gt;==&amp;gt; I am planning to use Trident for the same.&lt;/P&gt;&lt;LI&gt;I have used RabbitMq spout (storm) which has implemented  BaseRichSpout  (&lt;A href="https://github.com/ppat/storm-rabbitmq" target="_blank"&gt;https://github.com/ppat/storm-rabbitmq&lt;/A&gt;)&lt;OL&gt;&lt;LI&gt;I can see that it is a non transactional spout, and hence "would not" support only once semantics of Trident. Am I correct?&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;If I need to build an OpaqueTransactionalSpout for Rabbitmq, Can you give me some hints on how to start or some examples to look into&lt;/LI&gt;&lt;LI&gt;I wanted to write unit test to check if my Trident Topology supports "Exactly once semantic". Are there any sample  Unit tests/examples. The reason I want to write the tests  because "Exactly once semantics" depend on Spout also not just on Trident or Storm with my understanding.&lt;/LI&gt;&lt;LI&gt;I have to support sharded Rabbitmq and hence how to connect to more than one queue. I am thinking of using Stream.merge(List&amp;lt;Streams&amp;gt;) after creating once stream for each queue, Is this good idea to do?. Let me know your thoughts on the same.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://nathanmarz.github.io/storm/doc/storm/trident/TridentTopology.html#merge%28backtype.storm.tuple.Fields,%20java.util.List%29" target="_blank"&gt;https://nathanmarz.github.io/storm/doc/storm/tride...&lt;/A&gt;&lt;/LI&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/528/rsriharsha.html" nodeid="528" target="_blank"&gt;@Ram Sriharsha&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:51:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-sharded-rabbitmq-and-write-to-partitioned-kafka/m-p/98099#M11594</guid>
      <dc:creator>Narendra_Bidari</dc:creator>
      <dc:date>2022-09-16T09:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Read from sharded rabbitmq and write to partitioned kafka with only once semantics.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-sharded-rabbitmq-and-write-to-partitioned-kafka/m-p/98100#M11595</link>
      <description>&lt;UL&gt;&lt;LI&gt;Storm does not support the storm-rabbitmq spout that you mentioning, it does not ship with apache storm distro so I have not looked at the code. &lt;/LI&gt;&lt;LI&gt;Here is a JMS spout that you may be able to use as is with RabitMQ if RAbitMQ supports JMS &lt;A href="https://github.com/hortonworks/storm/tree/2.3-maint/external/storm-jms/src/main/java/backtype/storm/contrib/jms/trident"&gt;https://github.com/hortonworks/storm/tree/2.3-mai...&lt;/A&gt; (Note that this is available in HWX repo but not under apache)
&lt;/LI&gt;&lt;LI&gt;For an example of OpaqueSpout take a look at kafka-spout. &lt;A href="https://github.com/apache/storm/blob/master/external/storm-kafka/src/jvm/storm/kafka/trident/TridentKafkaEmitter.java#L211"&gt;https://github.com/apache/storm/blob/master/extern...&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;The unit test part for exactly once is kind of hard in my opinion and there are no current examples.&lt;/LI&gt;&lt;LI&gt;I am not sure if I understand the sharing queue's question completely. Your spout could read from N queues while outputting all the messages to a single stream, that is completely up to your spout. The merge can be useful if you want to create one spout -&amp;gt; one queue mapping and then merge all the output streams into a single stream that other processing units (trident states) subscribe to.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 16 Dec 2015 02:55:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-sharded-rabbitmq-and-write-to-partitioned-kafka/m-p/98100#M11595</guid>
      <dc:creator>pbrahmbhatt</dc:creator>
      <dc:date>2015-12-16T02:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Read from sharded rabbitmq and write to partitioned kafka with only once semantics.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-sharded-rabbitmq-and-write-to-partitioned-kafka/m-p/98101#M11596</link>
      <description>&lt;UL&gt;&lt;LI&gt;Out of the box Rabbitmq can support a single delivery of a message (Exactly Once), it really depends on how the RabbitMQ routing topology has been created.  For instance, if you have a single exchange and (direct) queue then it's impossible for another queue to receive the message.  &lt;/LI&gt;&lt;LI&gt;Instead merging streams, you may want to use RabbitMQ to do this, of course it depends on your RabbitMQ topology once again.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 04 Feb 2016 00:57:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Read-from-sharded-rabbitmq-and-write-to-partitioned-kafka/m-p/98101#M11596</guid>
      <dc:creator>jdavis1</dc:creator>
      <dc:date>2016-02-04T00:57:03Z</dc:date>
    </item>
  </channel>
</rss>

