It seems that flume has updated kite to 0.12 version http://flume.apache.org/releases/1.5.0.html https://issues.apache.org/jira/browse/FLUME-2345
So flume doesnt use lastest kite version and probably does not use this class anymore org/kitesdk/morphline/api/Command. What kite version are you using? Regards 2014-05-28 10:47 GMT+02:00 César Monteserín <[email protected]>: > Hi Iván, > > the MorphlineInterceptor class belongs to the Solr sink that comes with > flume. > > If I add the Kite, Metrics and Config dependencies, the > NoClassDefFoundError error dissappears. However, I did not have to add any > dependency in the previous version. > > Thank you. > > > 2014-05-28 10:04 GMT+02:00 Iván Fernández Perea < > [email protected]>: > > Hi Cesar, >> >> check if ou have MorphlineInterceptor within your flume classpath >> (FLUME_CLASSPATH variable in flume-env.sh file) >> >> >> >> >> 2014-05-28 9:55 GMT+02:00 César Monteserín <[email protected]>: >> >> Hi, >>> >>> I am getting the following error: >>> >>> [ERROR - >>> org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:145)] >>> Failed to start agent because dependencies were not found in classpath. >>> Error follows. >>> java.lang.NoClassDefFoundError: org/kitesdk/morphline/api/Command >>> at >>> org.apache.flume.sink.solr.morphline.MorphlineInterceptor.<init>(MorphlineInterceptor.java:55) >>> at >>> org.apache.flume.sink.solr.morphline.MorphlineInterceptor$Builder.build(MorphlineInterceptor.java:112) >>> at >>> org.apache.flume.sink.solr.morphline.MorphlineInterceptor$Builder.build(MorphlineInterceptor.java:103) >>> at >>> org.apache.flume.channel.ChannelProcessor.configureInterceptors(ChannelProcessor.java:111) >>> at >>> org.apache.flume.channel.ChannelProcessor.configure(ChannelProcessor.java:80) >>> at >>> org.apache.flume.conf.Configurables.configure(Configurables.java:41) >>> at >>> org.apache.flume.node.AbstractConfigurationProvider.loadSources(AbstractConfigurationProvider.java:353) >>> ... >>> >>> The configuration of the morphline interceptor is: >>> >>> agent.sources.spoolSource.interceptors = morphlineinterceptor >>> agent.sources.spoolSource.interceptors.morphlineinterceptor.type = >>> org.apache.flume.sink.solr.morphline.MorphlineInterceptor$Builder >>> agent.sources.spoolSource.interceptors.morphlineinterceptor.morphlineFile >>> = {morphline_file} >>> agent.sources.spoolSource.interceptors.morphlineinterceptor.morphlineId >>> = morphline1 >>> >>> Thanks in advance >>> >>> >>> 2014-05-28 5:11 GMT+02:00 Otis Gospodnetic <[email protected]>: >>> >>> Hi, >>>> >>>> Maybe you can provide some more information about errors you are seeing >>>> when you do ____ and somebody may be able to help. >>>> >>>> Otis >>>> -- >>>> Performance Monitoring * Log Analytics * Search Analytics >>>> Solr & Elasticsearch Support * http://sematext.com/ >>>> >>>> >>>> On Mon, May 26, 2014 at 7:23 AM, César Monteserín < >>>> [email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> I am trying to use a morphline interceptor with no success. >>>>> The same configuration works with the previous version, the 1.4.0. >>>>> >>>>> It seems that several dependencies can not be found such as Kite, >>>>> Metrics and Config. >>>>> >>>>> Could you take a look at it? >>>>> >>>>> Thank you >>>>> >>>> >>>> >>> >> >> >> -- >> Visit my blog: >> http://java4developers.com/ >> > > -- Visit my blog: http://java4developers.com/
