<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: ClassNotFoundException org.apache.flume.instrumentation.kafka.KafkaSinkCounter in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ClassNotFoundException-org-apache-flume-instrumentation/m-p/105710#M68588</link>
    <description>&lt;P&gt;Latest 2.3 release notes &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4.7/bk_HDP_RelNotes/content/errata_flume_kafka_sink.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4.7/bk_HDP_RelNotes/content/errata_flume_kafka_sink.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You do not need Flume 1.6 on HDP to have it working.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 21:55:14 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-04-19T21:55:14Z</dc:date>
    <item>
      <title>ClassNotFoundException org.apache.flume.instrumentation.kafka.KafkaSinkCounter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ClassNotFoundException-org-apache-flume-instrumentation/m-p/105707#M68585</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We are
trying to write in a Kafka queue with Flume. We have HDP 2.2.4, with this Flume
1.5.2.2.2  is installed.&lt;/P&gt;&lt;P&gt;Below the kafka sink configuration:
&lt;/P&gt;&lt;PRE&gt;occLogTcp.sinks.KAFKA.type = org.apache.flume.sink.kafka.KafkaSink
occLogTcp.sinks.KAFKA.topic = occTest
occLogTcp.sinks.KAFKA.brokerList = &amp;lt;broker_host_1&amp;gt;:9092,&amp;lt;broker_host_2&amp;gt;:9092
occLogTcp.sinks.KAFKA.requiredAcks = 1
occLogTcp.sinks.KAFKA.batchSize = 20
occLogTcp.sinks.KAFKA.channel = c1&lt;/PRE&gt;&lt;P&gt;Starting the flume agent
throws the following error:&lt;/P&gt;&lt;PRE&gt;java.lang.NoClassDefFoundError:
org/apache/flume/instrumentation/kafka/KafkaSinkCounter 
at org.apache.flume.sink.kafka.KafkaSink.configure(KafkaSink.java:218) 
at org.apache.flume.conf.Configurables.configure(Configurables.java:41) 
at
org.apache.flume.node.AbstractConfigurationProvider.loadSinks(AbstractConfigurationProvider.java:418) 
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.runAndReset(FutureTask.java:304) 
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:745)Caused by:
java.lang.ClassNotFoundException:
org.apache.flume.instrumentation.kafka.KafkaSinkCounter 
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:425) 
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) 
... 12 more&lt;/PRE&gt;&lt;P&gt;Thank you in advance,
Christian&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 20:05:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ClassNotFoundException-org-apache-flume-instrumentation/m-p/105707#M68585</guid>
      <dc:creator>chri</dc:creator>
      <dc:date>2016-04-19T20:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: ClassNotFoundException org.apache.flume.instrumentation.kafka.KafkaSinkCounter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ClassNotFoundException-org-apache-flume-instrumentation/m-p/105708#M68586</link>
      <description>&lt;P&gt;It seems like the package org/apache/flume/instrumentation/kafka/ has been added in version 1.6. Therefore Flume 1.5.2 doesn't support the KafkaSink.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 20:44:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ClassNotFoundException-org-apache-flume-instrumentation/m-p/105708#M68586</guid>
      <dc:creator>chri</dc:creator>
      <dc:date>2016-04-19T20:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: ClassNotFoundException org.apache.flume.instrumentation.kafka.KafkaSinkCounter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ClassNotFoundException-org-apache-flume-instrumentation/m-p/105709#M68587</link>
      <description>&lt;P&gt;we backported Kafka sink into 1.5.2, just make sure you are using HDP 2.3, I see you're on 2.2.4 which is quite old. Alternatively, try HDF powered by Apache nifi&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/9425/is-flume-to-kafka-sink-supported-in-hdp-232.html" target="_blank"&gt;https://community.hortonworks.com/questions/9425/is-flume-to-kafka-sink-supported-in-hdp-232.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 21:44:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ClassNotFoundException-org-apache-flume-instrumentation/m-p/105709#M68587</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-19T21:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: ClassNotFoundException org.apache.flume.instrumentation.kafka.KafkaSinkCounter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ClassNotFoundException-org-apache-flume-instrumentation/m-p/105710#M68588</link>
      <description>&lt;P&gt;Latest 2.3 release notes &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4.7/bk_HDP_RelNotes/content/errata_flume_kafka_sink.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4.7/bk_HDP_RelNotes/content/errata_flume_kafka_sink.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You do not need Flume 1.6 on HDP to have it working.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 21:55:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ClassNotFoundException-org-apache-flume-instrumentation/m-p/105710#M68588</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-19T21:55:14Z</dc:date>
    </item>
  </channel>
</rss>

