<?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: Kafka Connect with sample configuration not working in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Connect-with-sample-configuration-not-working/m-p/166191#M29560</link>
    <description>&lt;P&gt;I figured out the problem.
The default configurations use 'bootstrap.servers=sandbox.hortonworks.com:6667' instead of 'bootstrap.servers=localhost:9092' as the URL usage is required.&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2016 06:28:02 GMT</pubDate>
    <dc:creator>snisarg</dc:creator>
    <dc:date>2016-05-26T06:28:02Z</dc:date>
    <item>
      <title>Kafka Connect with sample configuration not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Connect-with-sample-configuration-not-working/m-p/166190#M29559</link>
      <description>&lt;P&gt;I am trying to use the Kafka Connect examples of write out to a file or console using the configuration files from within kafka's config folder [connect-console-sink.properties, config/connect-file-sink.properties]&lt;/P&gt;&lt;P&gt;I have messages in the topics, made these changes in the config files too. &lt;/P&gt;&lt;P&gt;Here's the last few entries from the log:&lt;/P&gt;&lt;P&gt;[2016-05-24 23:18:15,241] INFO Finished creating connector local-console-source (org.apache.kafka.connect.runtime.Worker:193)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:18:15,245] INFO TaskConfig values: &lt;/P&gt;&lt;P&gt;task.class = class org.apache.kafka.connect.file.FileStreamSinkTask&lt;/P&gt;&lt;P&gt; (org.apache.kafka.connect.runtime.TaskConfig:165)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:18:15,245] INFO Creating task local-console-source-0 (org.apache.kafka.connect.runtime.Worker:256)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:18:15,246] INFO Instantiated task local-console-source-0 with version 0.9.0.2.4.0.0-169 of type org.apache.kafka.connect.file.FileStreamSinkTask (org.apache.kafka.connect.runtime.Worker:267)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:18:15,253] INFO ConsumerConfig values: &lt;/P&gt;&lt;P&gt;request.timeout.ms = 40000&lt;/P&gt;&lt;P&gt;check.crcs = true&lt;/P&gt;&lt;P&gt;retry.backoff.ms = 100&lt;/P&gt;&lt;P&gt;ssl.truststore.password = null&lt;/P&gt;&lt;P&gt;ssl.keymanager.algorithm = SunX509&lt;/P&gt;&lt;P&gt;receive.buffer.bytes = 32768&lt;/P&gt;&lt;P&gt;ssl.cipher.suites = null&lt;/P&gt;&lt;P&gt;ssl.key.password = null&lt;/P&gt;&lt;P&gt;sasl.kerberos.ticket.renew.jitter = 0.05&lt;/P&gt;&lt;P&gt;ssl.provider = null&lt;/P&gt;&lt;P&gt;sasl.kerberos.service.name = null&lt;/P&gt;&lt;P&gt;session.timeout.ms = 30000&lt;/P&gt;&lt;P&gt;sasl.kerberos.ticket.renew.window.factor = 0.8&lt;/P&gt;&lt;P&gt;bootstrap.servers = [localhost:9092]&lt;/P&gt;&lt;P&gt;client.id = &lt;/P&gt;&lt;P&gt;fetch.max.wait.ms = 500&lt;/P&gt;&lt;P&gt;fetch.min.bytes = 1024&lt;/P&gt;&lt;P&gt;key.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer&lt;/P&gt;&lt;P&gt;sasl.kerberos.kinit.cmd = /usr/bin/kinit&lt;/P&gt;&lt;P&gt;auto.offset.reset = earliest&lt;/P&gt;&lt;P&gt;value.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer&lt;/P&gt;&lt;P&gt;ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]&lt;/P&gt;&lt;P&gt;partition.assignment.strategy = [org.apache.kafka.clients.consumer.RangeAssignor]&lt;/P&gt;&lt;P&gt;ssl.endpoint.identification.algorithm = null&lt;/P&gt;&lt;P&gt;max.partition.fetch.bytes = 1048576&lt;/P&gt;&lt;P&gt;ssl.keystore.location = null&lt;/P&gt;&lt;P&gt;ssl.truststore.location = null&lt;/P&gt;&lt;P&gt;ssl.keystore.password = null&lt;/P&gt;&lt;P&gt;metrics.sample.window.ms = 30000&lt;/P&gt;&lt;P&gt;metadata.max.age.ms = 300000&lt;/P&gt;&lt;P&gt;security.protocol = PLAINTEXT&lt;/P&gt;&lt;P&gt;auto.commit.interval.ms = 5000&lt;/P&gt;&lt;P&gt;ssl.protocol = TLS&lt;/P&gt;&lt;P&gt;sasl.kerberos.min.time.before.relogin = 60000&lt;/P&gt;&lt;P&gt;connections.max.idle.ms = 540000&lt;/P&gt;&lt;P&gt;ssl.trustmanager.algorithm = PKIX&lt;/P&gt;&lt;P&gt;group.id = connect-local-console-source&lt;/P&gt;&lt;P&gt;enable.auto.commit = false&lt;/P&gt;&lt;P&gt;metric.reporters = []&lt;/P&gt;&lt;P&gt;ssl.truststore.type = JKS&lt;/P&gt;&lt;P&gt;send.buffer.bytes = 131072&lt;/P&gt;&lt;P&gt;reconnect.backoff.ms = 50&lt;/P&gt;&lt;P&gt;metrics.num.samples = 2&lt;/P&gt;&lt;P&gt;ssl.keystore.type = JKS&lt;/P&gt;&lt;P&gt;heartbeat.interval.ms = 3000&lt;/P&gt;&lt;P&gt; (org.apache.kafka.clients.consumer.ConsumerConfig:165)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:18:15,286] INFO Kafka version : 0.9.0.2.4.0.0-169 (org.apache.kafka.common.utils.AppInfoParser:82)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:18:15,286] INFO Kafka commitId : 29fa247911f6823b (org.apache.kafka.common.utils.AppInfoParser:83)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:18:15,290] INFO Created connector local-console-source (org.apache.kafka.connect.cli.ConnectStandalone:82)&lt;/P&gt;&lt;P&gt;^C&lt;/P&gt;&lt;P&gt;[2016-05-24 23:19:01,375] INFO Kafka Connect stopping (org.apache.kafka.connect.runtime.Connect:68)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:19:01,375] INFO Stopping REST server (org.apache.kafka.connect.runtime.rest.RestServer:136)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:19:01,381] INFO Stopped ServerConnector@55ecdfba{HTTP/1.1}{0.0.0.0:8083} (org.eclipse.jetty.server.ServerConnector:306)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:19:01,388] INFO Stopped o.e.j.s.ServletContextHandler@3b907954{/,null,UNAVAILABLE} (org.eclipse.jetty.server.handler.ContextHandler:865)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:19:01,390] INFO REST server stopped (org.apache.kafka.connect.runtime.rest.RestServer:147)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:19:01,390] INFO Herder stopping (org.apache.kafka.connect.runtime.standalone.StandaloneHerder:62)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:19:01,390] INFO Stopping task local-console-source-0 (org.apache.kafka.connect.runtime.Worker:305)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:19:01,391] INFO Starting graceful shutdown of thread WorkerSinkTask-local-console-source-0 (org.apache.kafka.connect.util.ShutdownableThread:119)&lt;/P&gt;&lt;P&gt;[2016-05-24 23:19:01,391] ERROR Sink task WorkerSinkTask{id=local-console-source-0} was stopped before completing join group. Task initialization and start is being skipped (org.apache.kafka.connect.runtime.WorkerSinkTask:150)&lt;/P&gt;&lt;P&gt;Exception in thread "Thread-1" java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;at org.apache.kafka.connect.file.FileStreamSinkTask.stop(FileStreamSinkTask.java:88)&lt;/P&gt;&lt;P&gt;at org.apache.kafka.connect.runtime.WorkerSinkTask.awaitStop(WorkerSinkTask.java:119)&lt;/P&gt;&lt;P&gt;at org.apache.kafka.connect.runtime.Worker.stopTask(Worker.java:311)&lt;/P&gt;&lt;P&gt;at org.apache.kafka.connect.runtime.standalone.StandaloneHerder.removeConnectorTasks(StandaloneHerder.java:238)&lt;/P&gt;&lt;P&gt;at org.apache.kafka.connect.runtime.standalone.StandaloneHerder.stop(StandaloneHerder.java:68)&lt;/P&gt;&lt;P&gt;at org.apache.kafka.connect.runtime.Connect.stop(Connect.java:71)&lt;/P&gt;&lt;P&gt;at org.apache.kafka.connect.runtime.Connect$ShutdownHook.run(Connect.java:93)&lt;/P&gt;&lt;P&gt;[root@sandbox bin]# &lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 06:19:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Connect-with-sample-configuration-not-working/m-p/166190#M29559</guid>
      <dc:creator>snisarg</dc:creator>
      <dc:date>2016-05-25T06:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka Connect with sample configuration not working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Connect-with-sample-configuration-not-working/m-p/166191#M29560</link>
      <description>&lt;P&gt;I figured out the problem.
The default configurations use 'bootstrap.servers=sandbox.hortonworks.com:6667' instead of 'bootstrap.servers=localhost:9092' as the URL usage is required.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 06:28:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Connect-with-sample-configuration-not-working/m-p/166191#M29560</guid>
      <dc:creator>snisarg</dc:creator>
      <dc:date>2016-05-26T06:28:02Z</dc:date>
    </item>
  </channel>
</rss>

