Live instructor-led & Self-paced Online Certification Training Courses (Big Data, Hadoop, Spark) Forums Flume getting exception while fetching data from twitter using flume

Viewing 1 reply thread
  • Author
    Posts
    • #6648

      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)

    • #6649

      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();

Viewing 1 reply thread
  • You must be logged in to reply to this topic.