Posts: 7
Registered: ‎05-05-2014
Accepted Solution

Flume twitter analysis

Unhandled error
java.lang.NoSuchMethodError: twitter4j.conf.Configuration.isStallWarningsEnabled()Z
         at twitter4j.TwitterStreamImpl.<init>(
         at twitter4j.TwitterStreamFactory.<clinit>(
         at com.cloudera.flume.source.TwitterSource.<init>(
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
         at java.lang.reflect.Constructor.newInstance(
         at java.lang.Class.newInstance0(
         at java.lang.Class.newInstance(
         at org.apache.flume.source.DefaultSourceFactory.create(
         at org.apache.flume.node.AbstractConfigurationProvider.loadSources(
         at org.apache.flume.node.AbstractConfigurationProvider.getConfiguration(
         at org.apache.flume.node.PollingPropertiesFileConfigurationProvider$
         at java.util.concurrent.Executors$
         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(
         at java.util.concurrent.FutureTask.runAndReset(
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(
         at java.util.concurrent.ScheduledThreadPoolExecutor$
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
         at java.util.concurrent.ThreadPoolExecutor$


Hi All,

I am using Cloudera manager to Configure the flume to do ywitter analysis.I making the all the required changes I am getting the above error after restarting the agent

Posts: 43
Registered: ‎08-20-2013

Re: Flume twitter analysis

This error says your twitter4j.jar is not on the classpath for your flume agent. Check your flume agent log, the classpath should be dumped out in the log when you start the agent. Check if twitter4j.jar is in there.  If not, you can simple add it in.  Are you using cloudera manager? 

Posts: 7
Registered: ‎05-05-2014

Re: Flume twitter analysis

Hi Helen,


Thanks for reply.Yes I am using Cloudera Manager.




Posts: 43
Registered: ‎08-20-2013

Re: Flume twitter analysis

Then go to cloudera manager and in configuration for flume agent, under Advanced, you should see "Java Configuration Options for Flume Agent", add jars you need in there like : 


--classpath /.../.../twitter4j.jar 


The jar needs to be uploaded to the server of the flume agent. 

New Contributor
Posts: 1
Registered: ‎11-21-2017

Re: Flume twitter analysis

[ Edited ]



i am facing the same problem. 

i am very new to cloudera and am using cloudera quickstart, not the cloudera manager.


could you give me a beginners advice for overcoming this issue?

As well I am wondering if the issue to the problem is still the same as this post was made a few years ago. 


thanks a whole lot!