<?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: ActiveMQ to Flume to HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/40017#M25412</link>
    <description>The javax/jms/JMSException class is found in the geronimo-jms jar file, which isn't included by default in the flume classpath, as it is a third party jar. To include that, you would need to use the flume plugin architecture [1] to add any of the jars needed by activemq&lt;BR /&gt;&lt;BR /&gt;-pd&lt;BR /&gt;&lt;BR /&gt;[1] &lt;A href="http://flume.apache.org/FlumeUserGuide.html#installing-third-party-plugins" target="_blank"&gt;http://flume.apache.org/FlumeUserGuide.html#installing-third-party-plugins&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Apr 2016 21:24:57 GMT</pubDate>
    <dc:creator>pdvorak</dc:creator>
    <dc:date>2016-04-21T21:24:57Z</dc:date>
    <item>
      <title>ActiveMQ to Flume to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/39850#M25411</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to connect my Flume to ActiveMQ and then save the data in HDFS. When I start the flume service in cloudera manager, I got the following exception:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;2016-04-18 17:00:39,935 ERROR org.apache.flume.node.PollingPropertiesFileConfigurationProvider: Failed to start agent because dependencies were not found in classpath. Error follows.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;java.lang.NoClassDefFoundError: javax/jms/JMSException&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.lang.Class.forName0(Native Method)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.lang.Class.forName(Class.java:190)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at org.apache.flume.source.DefaultSourceFactory.getClass(DefaultSourceFactory.java:67)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at org.apache.flume.source.DefaultSourceFactory.create(DefaultSourceFactory.java:42)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at org.apache.flume.node.AbstractConfigurationProvider.loadSources(AbstractConfigurationProvider.java:322)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at org.apache.flume.node.AbstractConfigurationProvider.getConfiguration(AbstractConfigurationProvider.java:97)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:140)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.lang.Thread.run(Thread.java:745)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Caused by: java.lang.ClassNotFoundException: javax.jms.JMSException&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:366)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:355)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:354)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:425)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:358)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;... 14 more&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My flume conf in cloudera manager, is this correct:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sources = activemq-source-1&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.channels = activemq-channel-1&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sinks = hdfs-sink-1&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sources.activemq-source-1.type = jms&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sources.activemq-source-1.providerURL = tcp://10.228.200.251:61616&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sources.activemq-source-1.destinationName = .broker.pub.1.00137a00000275e1.01_ILLUMINANCEMEASURE_S.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sources.activemq-source-1.destinationType = TOPIC&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sources.activemq-source-1.channels = activemq-channel-1&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sinks.hdfs-sink-1.channel = activemq-channel-1&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sinks.hdfs-sink-1.type = hdfs&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sinks.hdfs-sink-1.hdfs.writeFormat = Text&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sinks.hdfs-sink-1.hdfs.fileType = DataStream&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sinks.hdfs-sink-1.hdfs.filePrefix = 00137a00000275e1&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sinks.hdfs-sink-1.hdfs.useLocalTimeStamp = true&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sinks.hdfs-sink-1.hdfs.path = /user/activemq/%{topic}&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sinks.hdfs-sink-1.hdfs.rollCount=100&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.sinks.hdfs-sink-1.hdfs.rollSize=0&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;# specify the capacity of the memory channel.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.channels.activemq-channel-1.type = memory&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.channels.activemq-channel-1.capacity = 10000&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;flume1.channels.activemq-channel-1.transactionCapacity = 10000&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;May I know how can I resolve the NoClassDefFound Exception?&amp;nbsp;Do I still need to add FLUME_CLASSPATH if I added/started service in Cloudera manager?&amp;nbsp;Is there any third party jar that I need to download to fix the&amp;nbsp;&lt;SPAN&gt;javax/jms/JMSException?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Any help is highly appreciated.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thank You.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:14:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/39850#M25411</guid>
      <dc:creator>whyy</dc:creator>
      <dc:date>2022-09-16T10:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveMQ to Flume to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/40017#M25412</link>
      <description>The javax/jms/JMSException class is found in the geronimo-jms jar file, which isn't included by default in the flume classpath, as it is a third party jar. To include that, you would need to use the flume plugin architecture [1] to add any of the jars needed by activemq&lt;BR /&gt;&lt;BR /&gt;-pd&lt;BR /&gt;&lt;BR /&gt;[1] &lt;A href="http://flume.apache.org/FlumeUserGuide.html#installing-third-party-plugins" target="_blank"&gt;http://flume.apache.org/FlumeUserGuide.html#installing-third-party-plugins&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Apr 2016 21:24:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/40017#M25412</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2016-04-21T21:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveMQ to Flume to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/40024#M25413</link>
      <description>&lt;P&gt;Hi Pdvorak,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding the three jars needed (copied from activeMQ) to the plugins.d folder (path from the CM Flume Configuration page), restarted the flume service, but I am stil getting the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;geronimo-spec-jms.jar&lt;/LI&gt;&lt;LI&gt;geronimo-spec-jta.jar&lt;/LI&gt;&lt;LI&gt;geronimo-spec-j2ee-management.jar&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Did I miss anything?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 01:24:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/40024#M25413</guid>
      <dc:creator>whyy</dc:creator>
      <dc:date>2016-04-22T01:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveMQ to Flume to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/40028#M25414</link>
      <description>Apparently I put in the wrong folder. It works! Thanks!</description>
      <pubDate>Fri, 22 Apr 2016 03:49:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/40028#M25414</guid>
      <dc:creator>whyy</dc:creator>
      <dc:date>2016-04-22T03:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveMQ to Flume to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/40906#M25415</link>
      <description>Hi ,&lt;BR /&gt;What is the path you copied the jms jars. Please let me know</description>
      <pubDate>Tue, 17 May 2016 06:25:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/40906#M25415</guid>
      <dc:creator>teravaidya</dc:creator>
      <dc:date>2016-05-17T06:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveMQ to Flume to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/61666#M25416</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16545" target="_self"&gt;&lt;SPAN class=""&gt;teravaidya&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default, the Flume agent plugins reside in this directories:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/usr/lib/flume-ng/plugins.d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/var/lib/flume-ng/plugins.d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 13:06:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ActiveMQ-to-Flume-to-HDFS/m-p/61666#M25416</guid>
      <dc:creator>vitortoledo</dc:creator>
      <dc:date>2017-11-09T13:06:41Z</dc:date>
    </item>
  </channel>
</rss>

