<?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: NiFi's ConsumeAMQP RabbitMQ to HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170270#M37267</link>
    <description>&lt;P&gt;Trying it, &lt;A rel="user" href="https://community.cloudera.com/users/410/ozhurakousky.html" nodeid="410"&gt;@ozhurakousky&lt;/A&gt; ...&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2016 18:30:49 GMT</pubDate>
    <dc:creator>arturo_amador</dc:creator>
    <dc:date>2016-08-09T18:30:49Z</dc:date>
    <item>
      <title>NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170265#M37262</link>
      <description>&lt;P&gt;Hortonworks
post:

Hi!&lt;/P&gt;&lt;P&gt;I wonder
about the status of the ConsumeAMQP processor for NiFi since I am interested in
consuming a live RabbitMQ stream. &lt;/P&gt;&lt;P&gt;This
stream I am currently trying to consume is a live stream generated by a remote
server. I am able to for example use a connector written as a Scala script to
consume the stream. In the connector I configure some parameters: &lt;/P&gt;&lt;PRE&gt;factory.setUsername&lt;/PRE&gt;&lt;PRE&gt;factory.setPassword&lt;/PRE&gt;&lt;PRE&gt;factory.setVirtualHost&lt;/PRE&gt;&lt;PRE&gt;factory.setHost&lt;/PRE&gt;&lt;PRE&gt;factory.setPort&lt;/PRE&gt;&lt;P&gt;Following the channel, queue and
binding declarations: &lt;/P&gt;&lt;PRE&gt;channel.exchangeDeclare&lt;/PRE&gt;&lt;PRE&gt;channel.queueDeclare&lt;/PRE&gt;&lt;PRE&gt;channel.queueBind&lt;/PRE&gt;&lt;P&gt;What I want to do is to be able to do is to set up NiFi in my virtual HDP 2.4 environment to consume the data stream and push it into HDFS, for example. NiFi's processor seems to be easy to configure. Here is a screenshot of the ConsumeAMQP processor's configuration: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6480-nifirabbit.png" style="width: 799px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20104iB8D20110A8B4AC36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6480-nifirabbit.png" alt="6480-nifirabbit.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once I introduce the parameters needed and start the processor I get the following errors: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6481-nifirabbiterrors.png" style="width: 547px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20105iA8BE7F7EAE371ED4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6481-nifirabbiterrors.png" alt="6481-nifirabbiterrors.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6482-nifierror2rabbit.png" style="width: 1873px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20106iA558091201CE0393/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6482-nifierror2rabbit.png" alt="6482-nifierror2rabbit.png" /&gt;&lt;/span&gt;&lt;/P&gt;I am a little confused when it comes to how to configure the Queue correctly, since I am not able to introduce the channel nor bind it to the Queue. The issue is not a blocked firewall since I am using the same terminal I use to Connect to the Rabbit stream via an Scala script. &lt;P&gt;I have been looking around for some tutorial or documentation page for hortonworks and RabbitMQ wihtout success. &lt;/P&gt;&lt;P&gt;Any help / tips / pointers  and comments could be of great help!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 12:29:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170265#M37262</guid>
      <dc:creator>arturo_amador</dc:creator>
      <dc:date>2026-04-21T12:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170266#M37263</link>
      <description>&lt;P&gt;Is queue "research_test_ defined? Remember that AMQP has a fundamentally different model then your typical messaging. Publisher publishes message NOT on the queue but to the "exchange" from which it gets routed to the queue(s) based on the bindings. So those have to be setup ahead of time. &lt;/P&gt;&lt;P&gt;So I am essentially trying to figure out what help are you looking for specifically? Setting up queues, exchanges and bindings is usually the administrative task in Rabbit. Is that the help you need? Getting to the right documentation?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 18:12:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170266#M37263</guid>
      <dc:creator>ozhurakousky</dc:creator>
      <dc:date>2016-08-09T18:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170267#M37264</link>
      <description>&lt;P&gt;This should be quite straightforward. If your processor is correctly configured with the same properties as you do in your script, there is no reason it does not work. Could you share the stack traces you may have in ./log/nifi-app.log file?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 18:18:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170267#M37264</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-08-09T18:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170268#M37265</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/410/ozhurakousky.html" nodeid="410"&gt;@ozhurakousky&lt;/A&gt;, thanks for Your reply!

I don't have access to the Publisher side however, in my scala Connector I am able to declare the "exchange", "queue" and "binding" and then connect to the messaging stream so I think it is safe to assume that they are set up. &lt;/P&gt;&lt;P&gt;I wonder on how to pass the same kind of declarations as in my Scala Connector for "exchange", "queue" and "binding" but in this case within NiFi. &lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 18:24:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170268#M37265</guid>
      <dc:creator>arturo_amador</dc:creator>
      <dc:date>2016-08-09T18:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170269#M37266</link>
      <description>&lt;P&gt;Assume nothing &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; and validate instead. So let's try one step at the time. This documents &lt;A href="https://www.rabbitmq.com/management-cli.html" target="_blank"&gt;https://www.rabbitmq.com/management-cli.html&lt;/A&gt; describes how you can list exchanges, bindings and queues.&lt;/P&gt;&lt;P&gt;$&amp;gt; rabbitmqadmin list queues&lt;/P&gt;&lt;P&gt;See if you can see your queue there since the exception you see makes me believe that it is not.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 18:25:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170269#M37266</guid>
      <dc:creator>ozhurakousky</dc:creator>
      <dc:date>2016-08-09T18:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170270#M37267</link>
      <description>&lt;P&gt;Trying it, &lt;A rel="user" href="https://community.cloudera.com/users/410/ozhurakousky.html" nodeid="410"&gt;@ozhurakousky&lt;/A&gt; ...&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 18:30:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170270#M37267</guid>
      <dc:creator>arturo_amador</dc:creator>
      <dc:date>2016-08-09T18:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170271#M37268</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/410/ozhurakousky.html" nodeid="410" target="_blank"&gt;@ozhurakousky&lt;/A&gt;, I am not able to run the Python script against the server (due to their security set-up). The exchange and queue are however defined: I ran a script on Scala that invoques the Rabbit Connector I have, where the exchange is declared together with the  queue. Weirdly enough, once the scrip was running I started the ConsumeAMQP processor in NiFi: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6485-status2.png" style="width: 819px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20102iC4CF11972F9F558C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6485-status2.png" alt="6485-status2.png" /&gt;&lt;/span&gt;&lt;/P&gt;As you can see, there are no error Messages, the processor is able to Connect With the given queue once I am running the Scala script. Still there is no read / Write Activity: &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6484-status1.png" style="width: 819px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20103i6E534CCFF401295A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6484-status1.png" alt="6484-status1.png" /&gt;&lt;/span&gt;&lt;P&gt;I have also Attached a "PutHDFS" procesor Connected to the ConsumeAMQP processor but it makes no difference... &lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:45:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170271#M37268</guid>
      <dc:creator>arturo_amador</dc:creator>
      <dc:date>2019-08-18T10:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170272#M37269</link>
      <description>&lt;P&gt;This could be due to auto-delete settings for queues, bindings and exchanges. I'd suggest to talk to your administrators or install a separate version of Rabbit that you can fully control.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 19:23:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170272#M37269</guid>
      <dc:creator>ozhurakousky</dc:creator>
      <dc:date>2016-08-09T19:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170273#M37270</link>
      <description>&lt;P&gt;If there are no messages sent to the queue, the consuming processor won't get any messages. Is your script publishing messages to the queue?&lt;/P&gt;&lt;P&gt;The fact that the consume processors only works when you run your script let me think that you have defined a queue that is not persistent (not durable). It means that your queue does not exist if you don't have a producer connected to it. You should consider creating a persistent queue.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 19:26:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170273#M37270</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-08-09T19:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170274#M37271</link>
      <description>&lt;P&gt;Yes, &lt;A rel="user" href="https://community.cloudera.com/users/410/ozhurakousky.html" nodeid="410"&gt;@ozhurakousky&lt;/A&gt; ! I think you are right, the queue is set to auto-deletion ... I will be contacting the admins on the Publisher side &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 19:51:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170274#M37271</guid>
      <dc:creator>arturo_amador</dc:creator>
      <dc:date>2016-08-09T19:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170275#M37272</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5078/pvillard.html" nodeid="5078"&gt;@Pierre Villard&lt;/A&gt;, my Scala script is just consuming from the remote stream (remote publisher). I am sure from the configurations for the Rabbit Connector I was given that the queue is not durable. I will contact the admins on the remote server / Publisher to see if it is possible to change the configs to a durable queue. Thanks a lot for Your help!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2016 19:54:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170275#M37272</guid>
      <dc:creator>arturo_amador</dc:creator>
      <dc:date>2016-08-09T19:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170276#M37273</link>
      <description>&lt;P&gt;This is still cracking my nuts &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; ... 

I have been in contact with the admin on the Publisher side. He has told me I can create my own Queue when I bind to the Exchange (like I do in my Scala script / connector). I can use any binding key or just "#" to filter events. If I have more than one process / instance I can use the same Queue name (that's what I do in NiFi when running simultaneously my Scala script and NiFi doesn't give errors, and runs tasks but without Reading a single byte), or I can leave an empty Queue and RabbitMQ automatically creates the name for me...

Still the Exchange is of the "topic" kind and non-durable. I just don't know how to create the Queue and bind it to the Exchange within NiFi, it looks like it should be easy but I just don't see how... &lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 20:26:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170276#M37273</guid>
      <dc:creator>arturo_amador</dc:creator>
      <dc:date>2016-08-10T20:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170277#M37274</link>
      <description>&lt;P&gt;To my point of view the situation is simple.&lt;/P&gt;&lt;P&gt;- your queue does not exist if your script is not running because your queue is not durable and then your queue will exist if and only if your script is running (because when running it creates the exchange, the queue, etc).&lt;/P&gt;&lt;P&gt;- NiFi requires that your queue exist to connect to it (as indicated in the logs).&lt;/P&gt;&lt;P&gt;- if your run your script, the queue is created, then there is no error in NiFi. But since your script does not send data to the queue, NiFi has nothing to consume and transfer.&lt;/P&gt;&lt;P&gt;What you want is something that send data to a queue (preferably a durable one) and use NiFi to pull data from this queue.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 20:36:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170277#M37274</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-08-10T20:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170278#M37275</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5078/pvillard.html" nodeid="5078"&gt;@Pierre Villard&lt;/A&gt; , I understand now. It is like you say a fairly simple situation. I have sent the adming an email requesting a permanent Queue to be defined. Do you recommend the Exchange to be set as "Direct" as well? or it is the same if it is defined as "topic"?  &lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 22:30:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170278#M37275</guid>
      <dc:creator>arturo_amador</dc:creator>
      <dc:date>2016-08-10T22:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170279#M37276</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12078/arturoamador.html" nodeid="12078"&gt;@Arturo Opsetmoen Amador&lt;/A&gt;, it really depends of your requirements and what will be pushing data to the queue, I recommend you to check this kind of details with your system admin depending of you are trying to achieve.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 22:35:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170279#M37276</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-08-10T22:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi's ConsumeAMQP RabbitMQ to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170280#M37277</link>
      <description>&lt;P&gt;Thanks a lot for the great help, &lt;A rel="user" href="https://community.cloudera.com/users/5078/pvillard.html" nodeid="5078"&gt;@Pierre Villard&lt;/A&gt; !&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 22:38:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-s-ConsumeAMQP-RabbitMQ-to-HDFS/m-p/170280#M37277</guid>
      <dc:creator>arturo_amador</dc:creator>
      <dc:date>2016-08-10T22:38:16Z</dc:date>
    </item>
  </channel>
</rss>

