Twitter Project Query



0

    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: com.cloudera.flume.source.TwitterSource
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at org.apache.flume.source.DefaultSourceFactory.getClass(DefaultSourceFactory.java:65)
    ... 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)


0

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.

Thanks


0

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.

 
Thanks,
Karan

Hope this helps.