<?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: Custom jar not loaded with flume service - cloudera manager in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4699#M778</link>
    <description>&lt;P&gt;It does not work.&amp;nbsp; I have changed the permission from root:root to flume:flume but without success. The error still persist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cloudera version: Cloudera Standard 4.7.2&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2014 20:13:28 GMT</pubDate>
    <dc:creator>mertez</dc:creator>
    <dc:date>2014-01-08T20:13:28Z</dc:date>
    <item>
      <title>Custom jar not loaded with flume service - cloudera manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4655#M776</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;tried&amp;nbsp; to configure flume as a service so that can be managed inside cloudera manager however I think that the custom jar from &lt;A target="_self" href="https://github.com/cloudera/cdh-twitter-example"&gt;cloudera guide&lt;/A&gt; is not picked up. Exception from the flume log is following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;org.apache.flume.node.PollingPropertiesFileConfigurationProvider     

Failed to load configuration data. Exception follows.
org.apache.flume.FlumeException: Unable to load source type: com.cloudera.flume.source.TwitterSource, class: com.cloudera.flume.source.TwitterSource
    at org.apache.flume.source.DefaultSourceFactory.getClass(DefaultSourceFactory.java:67)
    at org.apache.flume.source.DefaultSourceFactory.create(DefaultSourceFactory.java:40)
    at org.apache.flume.node.AbstractConfigurationProvider.loadSources(AbstractConfigurationProvider.java:327)
    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:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: com.cloudera.flume.source.TwitterSource&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set $FLUME_HOME, set addional java parameters in cloudera manager pointing to my jar, changed permission on the jar but none resulted in any change. Do you have any other suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have assumed that flume service in the cloudera manager is running by "flume" user. Is that correct? &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:52:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4655#M776</guid>
      <dc:creator>mertez</dc:creator>
      <dc:date>2022-09-16T08:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom jar not loaded with flume service - cloudera manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4659#M777</link>
      <description>&lt;P&gt;What version of Cloudera Manager and CDH are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The easiest way is to:&lt;BR /&gt;&amp;nbsp;- Copy third-party jars to a directory and specify this directory in Cloudera Manager's Flume Plugin directories configuration (in Flume service -&amp;gt; Configuration -&amp;gt; Agent -&amp;gt; Plugin directories)&lt;BR /&gt;&amp;nbsp;- Restart Flume service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't need to set FLUME_HOME explicitly when using Cloudera Manager.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 23:42:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4659#M777</guid>
      <dc:creator>mohit</dc:creator>
      <dc:date>2014-01-07T23:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom jar not loaded with flume service - cloudera manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4699#M778</link>
      <description>&lt;P&gt;It does not work.&amp;nbsp; I have changed the permission from root:root to flume:flume but without success. The error still persist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cloudera version: Cloudera Standard 4.7.2&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2014 20:13:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4699#M778</guid>
      <dc:creator>mertez</dc:creator>
      <dc:date>2014-01-08T20:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom jar not loaded with flume service - cloudera manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4719#M779</link>
      <description>&lt;P&gt;I think the plugin directory layout in the README.md is incorrect. Could you try using the plugin directory layout documented in the Flume User Guide instead ?: &lt;A href="http://archive.cloudera.com/cdh4/cdh/4/flume-ng/FlumeUserGuide.html#installing-third-party-plugins" target="_blank"&gt;http://archive.cloudera.com/cdh4/cdh/4/flume-ng/FlumeUserGuide.html#installing-third-party-plugins&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your_plugins_dir/some_custom_name/lib/foo.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: If you specified /var/lib/flume-ng/plugins.d as the plugin directory (in CM's Flume Plugin directories configuration), then your jar location should be:&lt;/P&gt;&lt;P&gt;/var/lib/flume-ng/plugins.d/twitter-streaming/lib/flume-sources-1.0-SNAPSHOT.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;BR /&gt;Mohit&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2014 22:29:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4719#M779</guid>
      <dc:creator>mohit</dc:creator>
      <dc:date>2014-01-08T22:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom jar not loaded with flume service - cloudera manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4849#M780</link>
      <description>&lt;P&gt;Your suggestion with a different path worked.. I had another issue with conflicting jars witch was solved with help of this&lt;A target="_self" href="http://www.thecloudavenue.com/2013/03/analyse-tweets-using-flume-hadoop-and.html"&gt; post&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 10:06:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/4849#M780</guid>
      <dc:creator>mertez</dc:creator>
      <dc:date>2014-01-14T10:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom jar not loaded with flume service - cloudera manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/14256#M781</link>
      <description>&lt;P&gt;I changed the path first, and didn't work, then I changed the permissions (even for directories and subdirectories) and then it worked, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 15:00:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/14256#M781</guid>
      <dc:creator>Kulssaka</dc:creator>
      <dc:date>2014-06-26T15:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom jar not loaded with flume service - cloudera manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/31517#M782</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an issue with fully qualified name of the Class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the older versions, class name is:&amp;nbsp;&lt;SPAN&gt; com.cloudera.flume.source.TwitterSource&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the latest version of the flume TwitterSource is already shipped and no need to download separately.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The class name is changed to&amp;nbsp;org.apache.flume.source.twitter.TwitterSource&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please carefully change the class name, defitely It will work for you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Naga&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 18:54:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/31517#M782</guid>
      <dc:creator>inelu</dc:creator>
      <dc:date>2015-09-03T18:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom jar not loaded with flume service - cloudera manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/32883#M783</link>
      <description>&lt;P&gt;Hi Naga&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the class name to&amp;nbsp;org.apache.flume.source.twitter.TwitterSource in flume.conf file. I am still getting the same error.&lt;/P&gt;&lt;P&gt;Do you have any other suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 05:19:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/32883#M783</guid>
      <dc:creator>yogcdh</dc:creator>
      <dc:date>2015-10-12T05:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom jar not loaded with flume service - cloudera manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/33999#M784</link>
      <description>&lt;P&gt;I did exactly what you said moving /usr/lib/flume-ng/plugins.d/tweeterStream/flume-sources-1.0-SNAPSHOT.jar and still have the same message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;15/11/10 21:24:04 ERROR node.PollingPropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
org.apache.flume.FlumeException: Unable to load source type: com.cloudera.flume.source.TwitterSource, class: com.cloudera.flume.source.TwitterSource
	at org.apache.flume.source.DefaultSourceFactory.getClass(DefaultSourceFactory.java:69)
	at org.apache.flume.source.DefaultSourceFactory.create(DefaultSourceFactory.java:42)
	at org.apache.flume.node.AbstractConfigurationProvider.loadSources(AbstractConfigurationProvider.java:322)
	at org.apache.flume.node.AbstractConfigurationProvider.getConfiguration(AbstractConfigurationProvider.java:97)
	at org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:140)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.cloudera.flume.source.TwitterSource
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.apache.flume.source.DefaultSourceFactory.getClass(DefaultSourceFactory.java:67)
	... 11 more&lt;/PRE&gt;&lt;P&gt;If I change to the "new" class org.apache.flume.source.twitter.TwitterSource as mentioned early, my keywords filters just does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 02:30:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/33999#M784</guid>
      <dc:creator>brtt</dc:creator>
      <dc:date>2015-11-11T02:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom jar not loaded with flume service - cloudera manager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/42387#M785</link>
      <description>&lt;P&gt;I am also having the same problem after I created directory and move the jar to the plugin folder:&lt;/P&gt;&lt;P&gt;Here is the details:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot - 2016_6_28 , 11_03_10.jpg" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/1861i8403D99E1282E467/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot - 2016_6_28 , 11_03_10.jpg" alt="Screenshot - 2016_6_28 , 11_03_10.jpg" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see I have the .jar file in the right lib folder:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;img /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot - 2016_6_28 , 11_06_42.jpg" style="width: 404px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/1863i8FF13896BE3830E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot - 2016_6_28 , 11_06_42.jpg" alt="Screenshot - 2016_6_28 , 11_06_42.jpg" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My environment variables are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export FLUME_HOME=/opt/flume
export FLUME_CONF_DIR=$FLUME_HOME/conf
export FLUME_CLASSPATH=$FLUME_HOME_DIR
export PATH=$FLUME_HOME/bin:$PATH&lt;/PRE&gt;&lt;P&gt;and I am doing this under root user, below is the error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;16/06/28 10:48:21 ERROR node.PollingPropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows.
org.apache.flume.FlumeException: Unable to load source type: com.cloudera.flume.source.TwitterSource, class: com.cloudera.flume.source.TwitterSource
	at org.apache.flume.source.DefaultSourceFactory.getClass(DefaultSourceFactory.java:67)
	at org.apache.flume.source.DefaultSourceFactory.create(DefaultSourceFactory.java:40)
	at org.apache.flume.node.AbstractConfigurationProvider.loadSources(AbstractConfigurationProvider.java:327)
	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:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.cloudera.flume.source.TwitterSource
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.apache.flume.source.DefaultSourceFactory.getClass(DefaultSourceFactory.java:65)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone shed any light on this with me? Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:12:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-jar-not-loaded-with-flume-service-cloudera-manager/m-p/42387#M785</guid>
      <dc:creator>PasLeChoix</dc:creator>
      <dc:date>2016-06-28T15:12:16Z</dc:date>
    </item>
  </channel>
</rss>

