<?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: Trying to integrate ibm mq as a flume source in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21548#M908</link>
    <description>&lt;P&gt;Okay, I finally got this working by setting up a File System Initial Context for the IBM MQ queue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tier1.sources.source2.type = jms&lt;BR /&gt;tier1.sources.source2.providerURL = file:///home/cloudera/JNDI-Directory&lt;BR /&gt;tier1.sources.source2.initialContextFactory = com.sun.jndi.fscontext.RefFSContextFactory&lt;BR /&gt;tier1.sources.source2.destinationType = QUEUE&lt;BR /&gt;tier1.sources.source2.destinationName = theQueueName&lt;/P&gt;</description>
    <pubDate>Thu, 13 Nov 2014 21:23:54 GMT</pubDate>
    <dc:creator>laurenryan</dc:creator>
    <dc:date>2014-11-13T21:23:54Z</dc:date>
    <item>
      <title>Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/5279#M901</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;I am looking for a guide/ Howto use flume with a jms source of ibm mq.. so far i have used the official documentation but with no luck..&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody has any expereience with this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:52:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/5279#M901</guid>
      <dc:creator>TheGuy12</dc:creator>
      <dc:date>2022-09-16T08:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/15534#M902</link>
      <description>Flume provides and supports an inbuilt JMS source that can work with external systems. This is documented further at &lt;A target="_blank" href="http://archive.cloudera.com/cdh5/cdh/5/flume-ng/FlumeUserGuide.html#jms-source."&gt;http://archive.cloudera.com/cdh5/cdh/5/flume-ng/FlumeUserGuide.html#jms-source.&lt;/A&gt;</description>
      <pubDate>Sun, 20 Jul 2014 13:50:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/15534#M902</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-07-20T13:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21378#M903</link>
      <description>&lt;P&gt;Hi TheGuy12,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you had any luck with this yet? I've seen the documentation for using flume with a JMS source, but I cannot get it working for IBM MQ. Has anyone ever successfully been able to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:17:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21378#M903</guid>
      <dc:creator>laurenryan</dc:creator>
      <dc:date>2014-11-10T18:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21394#M904</link>
      <description>&lt;P&gt;you can develop your own flume API for receive datab from MQ.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 05:28:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21394#M904</guid>
      <dc:creator>iamfromsky</dc:creator>
      <dc:date>2014-11-11T05:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21474#M905</link>
      <description>&lt;P&gt;&amp;nbsp;Not sure what you mean by "develop your own flume api". I've built a custom flume source that can listen to IBM MQ just fine, but we'd really like to use what Flume's already provided, their in-built JMS source. I just can't get it to work, was wondering if anyone else has and could show me how they configured it.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:43:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21474#M905</guid>
      <dc:creator>laurenryan</dc:creator>
      <dc:date>2014-11-12T13:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21482#M906</link>
      <description>&lt;P&gt;What errors are you getting on the flume side, or how are you observing the failure?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 16:24:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21482#M906</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2014-11-12T16:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21485#M907</link>
      <description>&lt;P&gt;I'm observing the error in the Flume logs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the real&amp;nbsp;issue I'm having is potentially what to use as an appropriate initial context factory for IBM MQ. Currently I'm using com.ibm.mq.jms.context.WMQInitialContextFactory, but according to the internet,&amp;nbsp;using that class in general is not recommended. But I don't know what a suitable alternative is... I do not have experience with IBM MQ beyond making simple java clients to listen in on queues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my configuration for the source:&lt;/P&gt;&lt;PRE&gt;tier1.sources.source1.type = jms
tier1.sources.source1.providerURL = theHostName:1415/theChannelName
tier1.sources.source1.channels = channel1
tier1.sources.source1.initialContextFactory = com.ibm.mq.jms.context.WMQInitialContextFactory
tier1.sources.source1.destinationType = QUEUE
tier1.sources.source1.destinationName = theQueueName&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the error:&lt;/P&gt;&lt;PRE&gt;Failed to publish event: SimpleEvent{attributes={STACKTRACE=[org.apache.flume.FlumeException: Could not create initial context com.ibm.mq.jms.context.WMQInitialContextFactory provider &lt;SPAN&gt;theH&lt;/SPAN&gt;&lt;SPAN&gt;ostName&lt;/SPAN&gt;&lt;SPAN&gt;:1415/theC&lt;/SPAN&gt;&lt;SPAN&gt;hannelName&lt;/SPAN&gt;
	at org.apache.flume.source.jms.JMSSource.doConfigure(JMSSource.java:224)
	at org.apache.flume.source.BasicSourceSemantics.configure(BasicSourceSemantics.java:65)
	at org.apache.flume.conf.Configurables.configure(Configurables.java:41)
	at org.apache.flume.node.AbstractConfigurationProvider.loadSources(AbstractConfigurationProvider.java:331)
	at org.apache.flume.node.AbstractConfigurationProvider.getConfiguration(AbstractConfigurationProvider.java:102)
	at org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:140)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager &lt;SPAN&gt;theH&lt;/SPAN&gt;&lt;SPAN&gt;ostName&lt;/SPAN&gt;&lt;SPAN&gt;:1415/theC&lt;/SPAN&gt;&lt;SPAN&gt;hannelName&lt;/SPAN&gt; [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2035'.]
	at com.ibm.mq.jms.context.MQContext.&amp;lt;init&amp;gt;(MQContext.java:196)
	at com.ibm.mq.jms.context.WMQInitialContextFactory.getInitialContext(WMQInitialContextFactory.java:29)
	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
	at javax.naming.InitialContext.init(InitialContext.java:242)
	at javax.naming.InitialContext.&amp;lt;init&amp;gt;(InitialContext.java:216)
	at org.apache.flume.source.jms.InitialContextFactory.create(InitialContextFactory.java:29)
	at org.apache.flume.source.jms.JMSSource.doConfigure(JMSSource.java:222)
	... 12 more
Caused by: com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2035'.
	at com.ibm.mq.MQDestination.open(MQDestination.java:331)
	at com.ibm.mq.MQQueue.&amp;lt;init&amp;gt;(MQQueue.java:250)
	at com.ibm.mq.MQQueueManager.accessQueue(MQQueueManager.java:2799)
	at com.ibm.mq.pcf.PCFAgent.open(PCFAgent.java:334)
	at com.ibm.mq.pcf.PCFAgent.open(PCFAgent.java:309)
	at com.ibm.mq.pcf.PCFAgent.connect(PCFAgent.java:230)
	at com.ibm.mq.pcf.PCFAgent.&amp;lt;init&amp;gt;(PCFAgent.java:163)
	at com.ibm.mq.pcf.PCFMessageAgent.&amp;lt;init&amp;gt;(PCFMessageAgent.java:140)
	at com.ibm.mq.jms.context.MQContext.&amp;lt;init&amp;gt;(MQContext.java:183)
	... 19 more&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking up MQJE001, Reason 2035, it's a&amp;nbsp;&lt;SPAN&gt;MQRC_NOT_AUTHORIZED error. However I have no issues listening in on this same queue in java clients (without providing a username/password), and in the custom flume source I've created, again without providing a username or password.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This leads me to believe I've got something configured incorrectly, but&amp;nbsp;I cannot figure it out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone know a) which initial context factory to use for IBM MQ? or b) what else I'm doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:27:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21485#M907</guid>
      <dc:creator>laurenryan</dc:creator>
      <dc:date>2014-11-12T17:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21548#M908</link>
      <description>&lt;P&gt;Okay, I finally got this working by setting up a File System Initial Context for the IBM MQ queue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tier1.sources.source2.type = jms&lt;BR /&gt;tier1.sources.source2.providerURL = file:///home/cloudera/JNDI-Directory&lt;BR /&gt;tier1.sources.source2.initialContextFactory = com.sun.jndi.fscontext.RefFSContextFactory&lt;BR /&gt;tier1.sources.source2.destinationType = QUEUE&lt;BR /&gt;tier1.sources.source2.destinationName = theQueueName&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 21:23:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/21548#M908</guid>
      <dc:creator>laurenryan</dc:creator>
      <dc:date>2014-11-13T21:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/23030#M909</link>
      <description>&lt;P&gt;Background: Newbie flumer, newbie IBM MQ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I too am trying to connect to IBM MQ, it throws a class not found exception for WMQInitialContextFactory, I have included all jars which I found with the IBM MQ Client I installed just to get the jars, not surprisingly the WMQInitialContextFactory class mentioned above was not in any of the jars.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But looking at the responses above WMQInitialContextFactory Class is not the way to go.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can the solutionist to this thead&amp;nbsp;please share the anonymized contents of your JNDI properties file you used with the RefFSContextFactory class ? and/or describe the solution in detail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if I am&amp;nbsp;totally wrong in my approach.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2014 20:56:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/23030#M909</guid>
      <dc:creator>newbieFlumer</dc:creator>
      <dc:date>2014-12-23T20:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/23729#M910</link>
      <description>&lt;P&gt;Sure. Sorry for the late response. You need to create the JNDI bindings&amp;nbsp;file yourself with the admin tool that is included in the IBM MQ client install. I installed it on Windows, so for me, that was located at&amp;nbsp;C:\Program Files (x86)\IBM\WebSphere MQ\java\bin\JMSAdmin.bat . In that directory, there's also a JMSAdmin.config file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configured mine with these three lines :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file:/C:/tmp
SECURITY_AUTHENTICATION=none

&lt;/PRE&gt;&lt;P&gt;Running JMSAdmin.bat:&lt;/P&gt;&lt;PRE&gt;InitCtx&amp;gt; DEF CF(myConnectionFactory) QMGR(theQueueManager) HOSTNAME(theHostName) PORT(1415) CHANNEL(MY.CHANNEL.01) TRANSPORT(CLIENT)&lt;/PRE&gt;&lt;P&gt;Then I moved the file it generated in C:/tmp over to my flume agent. The provider URL you specify in your flume config should be where this file is located.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For completion's sake I'll include&amp;nbsp;the flume config I used from above here:&lt;/P&gt;&lt;PRE&gt;tier1.sources.source2.type = jms
tier1.sources.source2.providerURL = file:///home/cloudera/JNDI-Directory
tier1.sources.source2.initialContextFactory = com.sun.jndi.fscontext.RefFSContextFactory
tier1.sources.source2.destinationType = QUEUE
tier1.sources.source2.destinationName = theQueueName&lt;BR /&gt;tier1.sources.source2.connectionFactory = myConnectionFactory&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 18:56:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/23729#M910</guid>
      <dc:creator>laurenryan</dc:creator>
      <dc:date>2015-01-15T18:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/23793#M911</link>
      <description>&lt;P&gt;We didn't have the rights to create the JNDI file and the required tools.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially we wrote a thin JMS client for IBM MQ + SSL using IBM libs and&amp;nbsp;&lt;/P&gt;&lt;P&gt;convert it to a&amp;nbsp;&amp;nbsp;flume pollable source for IBM MQ + SSL,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 17:17:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/23793#M911</guid>
      <dc:creator>newbieFlumer</dc:creator>
      <dc:date>2015-01-16T17:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to integrate ibm mq as a flume source</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/32988#M912</link>
      <description>&lt;P&gt;I am able to connect to IBM MQ using the steps mentioned here. But when Flume is trying to consume any messages from the Q, its throwing following exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;com.ibm.msg.client.jms.DetailedMessageFormatExcept​ion: JMSCC0053: An exception occurred deserializing a message, exception: 'java.lang.ClassNotFoundException: null class'.&lt;BR /&gt;It was not possible to deserialize the message because of the exception shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I am using all the ibm mq client jars. Flume is starting with out any exception. But exception is coming when trying to consume&lt;/P&gt;&lt;P&gt;the messages .&lt;/P&gt;&lt;P&gt;2) I am putting a custom message [Serializable object] into Q which Flume need to consume.&lt;/P&gt;&lt;P&gt;3) Flume 1.5.0-cdh5.4.1&lt;/P&gt;&lt;P&gt;4) MQ Version 8.x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a1.sources=fe_s1&lt;BR /&gt;a1.channels=c1&lt;BR /&gt;a1.sinks=k1&lt;/P&gt;&lt;P&gt;a1.sources.s1.type=jms&lt;BR /&gt;a1.sources.s1.channels=c1&lt;BR /&gt;a1.sources.s1.initialContextFactory=com.sun.jndi.f​scontext.RefFSContextFactory&lt;BR /&gt;a1.sources.s1.connectionFactory=FLUME_CF&lt;BR /&gt;a1.sources.s1.destinationName=MY.Q&lt;BR /&gt;a1.sources.s1.providerURL=file:///home/JNDI-Direct​ory&lt;BR /&gt;a1.sources.s1.destinationType=QUEUE&lt;BR /&gt;a1.sources.s1.transportType=1&lt;BR /&gt;a1.sources.s1.userName=mqm&lt;BR /&gt;a1.sources.s1.batchSize=1&lt;/P&gt;&lt;P&gt;a1.channels.c1.type=memory&lt;BR /&gt;a1.channels.c1.capacity=10000&lt;BR /&gt;a1.channels.c1.transactionCapacity=100&lt;/P&gt;&lt;P&gt;a1.sinks.k1.type=logger&lt;BR /&gt;a1.sinks.k1.channel=c1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 03:05:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Trying-to-integrate-ibm-mq-as-a-flume-source/m-p/32988#M912</guid>
      <dc:creator>pradyot</dc:creator>
      <dc:date>2015-10-15T03:05:00Z</dc:date>
    </item>
  </channel>
</rss>

