将twitter数据获取到hdfs时使用flume时出错

xjreopfe  于 2021-06-04  发布在  Flume
关注(0)|答案(1)|浏览(378)

在使用flume将twitter数据提取到hdfs时,我一次又一次地遇到这个错误,因为我已经更改了twitter4j.jar文件的版本,请告诉我为什么会出现这个错误。有人能告诉我下一步在hdfs中提取数据的步骤是什么吗;
(conf-file-poller-0)[debug-org.apache.flume.source.defaultsourcefactory.getclass(defaultsourcefactory)。java:60)]源类型org.apache.flume.source.twitter.twittersource是自定义类型2017-11-01 15:29:12,648(conf-file-poller-0)[error-org.apache.flume.node.pollingpropertiesfileconfigurationprovider$filewatcherrunnable.run(pollingpropertiesfileconfigurationprovider)。java:150)]未处理的错误java.lang.nosuchmethoderror:twitter4j.twitterstream.addlistener(ltwitter4j/statuslistener;)v位于org.apache.flume.source.twitter.twittersource.configure(twittersource。java:114)在org.apache.flume.conf.configurables.configurable(configurables。java:41)位于org.apache.flume.node.abstractconfigurationprovider.loadsources(abstractconfigurationprovider)。java:326)在org.apache.flume.node.abstractconfigurationprovider.getconfiguration(abstractconfigurationprovider)。java:101)在org.apache.flume.node.pollingpropertiesfileconfigurationprovider$filewatcherrunnable.run(pollingpropertiesfileconfigurationprovider。java:141)在java.util.concurrent.executors$runnableadapter.call(executors。java:511)在java.util.concurrent.futuretask.runandreset(futuretask。java:308)在java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$301(scheduledthreadpoolexecutor。java:180)在java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor。java:294)在java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor。java:1149)在java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor。java:624)在java.lang.thread.run(线程。java:748)

w41d8nur

w41d8nur1#

通过添加twitter4j流解决» 3.0.3和twitter4j核心» 3.0.3 .

相关问题