Free Online Certification Courses – Learn Today. Lead Tomorrow. › Forums › Flume › getting exception while fetching data from twitter using flume
- This topic has 1 reply, 1 voice, and was last updated 5 years, 6 months ago by DataFlair Team.
-
AuthorPosts
-
-
October 10, 2018 at 4:55 pm #6648DataFlair TeamSpectator
ERROR node.PollingPropertiesFileConfigurationProvider: Unhandled error
java.lang.NoSuchMethodError: twitter4j.TwitterStream.addListener(Ltwitter4j/StatusListener;)V
at org.apache.flume.source.twitter.TwitterSource.configure(TwitterSource.java:119)
at org.apache.flume.conf.Configurables.configure(Configurables.java:41)
at org.apache.flume.node.AbstractConfigurationProvider.loadSources(AbstractConfigurationProvider.java:326)
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) -
October 10, 2018 at 4:55 pm #6649DataFlair TeamSpectator
Hi..
The first line itself is telling us that, There is no such method which you were trying to use .It seems like your using older version of “twitter4j”JARs (Specially “twitter4j-core”).So , I request you to please use latest JAR.Other errors might had came because of the same issue .
Earlier version of this class had a method as following;
URL getMediaURLHttps();
Which is now changed to the following signature:
String getMediaURL();
-
-
AuthorPosts
- You must be logged in to reply to this topic.