Twitter Project Query


Caused by: java.lang.ClassNotFoundException: com.cloudera.flume.source.TwitterSource
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(
    at org.apache.flume.source.DefaultSourceFactory.getClass(
    ... 13 more

I can get this error on 5 no step. I have two question where I put the jar file which is already shared along with project file. I put the jar file in the /user/cloudera/home . And what is the problem why the downloading data from twitter is stopped. And I also on the flume agent to see the document.

2 Answer(s)


Hi Shampurna,

The jar must be in local directory, if you are referring to path: /user/cloudera/home looks like HDFS path.

Please put the jar containing TwitterSource class in flume lib directory.

The data will stop once the mention iteration cycle in full. You can increase the value of rollcount parameter to fetch more data and other factor is the keyword selected for analysis.

Hope this helps.



Hi Sampurna,

Here is the response from the faculty:


I have shared flume-sources.jar file in Module-10 folder on Google Drive.


Please download the jar file and add the file to Flume's class path, i.e put the jar file in lib folder inside Flume installation directory.


Hope this helps.