2 lxwustc lxwustc 于 2014.03.20 16:23 提问

flume-ng 1.4 elasticsearch sink 报错

哪位知道这个怎么回事啊?
使用flume-ng 使用elasticsearch 作为sink的时候报错。

20 三月 2014 22:28:09,417 INFO conf-file-poller-0 - Creating channels
20 三月 2014 22:28:09,438 INFO conf-file-poller-0 - Creating instance of channel c1 type memory
20 三月 2014 22:28:09,451 INFO conf-file-poller-0 - Created channel c1
20 三月 2014 22:28:09,453 INFO conf-file-poller-0 - Creating instance of source r1, type spooldir
20 三月 2014 22:28:09,478 INFO conf-file-poller-0 - Creating instance of sink: k1, type: elasticsearch
20 三月 2014 22:28:09,486 ERROR conf-file-poller-0 - Failed to start agent because dependencies were not found in classpath. Error follows.
java.lang.NoClassDefFoundError: org/elasticsearch/common/transport/TransportAddress
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at org.apache.flume.sink.DefaultSinkFactory.getClass(DefaultSinkFactory.java:67)
at org.apache.flume.sink.DefaultSinkFactory.create(DefaultSinkFactory.java:41)
at org.apache.flume.node.AbstractConfigurationProvider.loadSinks(AbstractConfigurationProvider.java:415)
at org.apache.flume.node.AbstractConfigurationProvider.getConfiguration(AbstractConfigurationProvider.java:103)
at org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:140)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.common.transport.TransportAddress
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

19个回答

u012296415
u012296415   2014.08.29 15:48

楼主,你的问题,解决了吗?我也碰到了同样的问题,查到貌似是缺少一个什么包,但是不知道具体情况,如果您解决了,麻烦回复一下

hxj3315
hxj3315   2015.07.07 14:17

把elasticsearch lib目录的文件拷到flume lib目录

hxj3315
hxj3315   2015.07.07 14:17

把elasticsearch lib目录的文件拷到flume lib目录

hxj3315
hxj3315   2015.07.07 14:17

把elasticsearch lib目录的文件拷到flume lib目录

hxj3315
hxj3315   2015.07.07 14:18

把elasticsearch lib目录的文件拷到flume lib目录

hxj3315
hxj3315   2015.07.07 14:18

把elasticsearch lib目录的文件拷到flume lib目录

hxj3315
hxj3315   2015.07.07 14:18

把elasticsearch lib目录的文件拷到flume lib目录

hxj3315
hxj3315   2015.07.07 14:18

把elasticsearch lib目录的文件拷到flume lib目录

hxj3315
hxj3315   2015.07.07 14:18

把elasticsearch lib目录的文件拷到flume lib目录

hxj3315
hxj3315   2015.07.07 14:17

把elasticsearch lib目录的文件拷到flume lib目录

共19条数据 1 尾页
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!