<?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: Spark Kafa createDirectStream failed while createStream successful in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Kafa-createDirectStream-failed-while-createStream/m-p/143156#M28050</link>
    <description>&lt;P&gt;This can have different reasons unfortunately I have seen the same error when using wrong hostnames ( not fully qualified, localhost instead of the full hostname ... ) I have also seen it in the context of security, i.e. when connecting to a kerberized kafka and providing a wrong jaas configuration, ...&lt;/P&gt;&lt;P&gt;First thing I would do is check the broker-host variable. Fully qualify it and see if that fixes anything. &lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2016 15:00:43 GMT</pubDate>
    <dc:creator>bleonhardi</dc:creator>
    <dc:date>2016-05-12T15:00:43Z</dc:date>
    <item>
      <title>Spark Kafa createDirectStream failed while createStream successful</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Kafa-createDirectStream-failed-while-createStream/m-p/143155#M28049</link>
      <description>&lt;P&gt;I'm testing spark streaming from Kafka code from &lt;A href="https://github.com/apache/spark/blob/master/examples/src/main/scala/org/apache/spark/examples/streaming/DirectKafkaWordCount.scala"&gt;Spark example&lt;/A&gt; in HDP 2.4 and Spark 1.6.&lt;/P&gt;&lt;P&gt;I tried &lt;A href="https://github.com/apache/spark/blob/master/examples/src/main/scala/org/apache/spark/examples/streaming/KafkaWordCount.scala"&gt;KafkaWordCount.scala&lt;/A&gt; example successful with &lt;/P&gt;&lt;P&gt;`$ bin/run-example org.apache.spark.examples.streaming.KafkaWordCount zoo01,zoo02,zoo03  my-consumer-group topic1,topic2 1`&lt;/P&gt;&lt;P&gt;But &lt;A href="https://github.com/apache/spark/blob/master/examples/src/main/scala/org/apache/spark/examples/streaming/DirectKafkaWordCount.scala"&gt;DirectKafkaWordCount.scala&lt;/A&gt; failed with below query and error&lt;/P&gt;&lt;P&gt;bin/run-example streaming.DirectKafkaWordCount broker1-host:port,broker2-host:port topic1,topic2&lt;/P&gt;&lt;PRE&gt;16/05/11 13:52:02 INFO SimpleConsumer: Reconnect due to socket error: java.io.EOFException: Received -1 when reading from channel, socket has likely been closed.
org.apache.spark.SparkException: java.io.EOFException: Received -1 when reading from channel, socket has likely been closed.
        at org.apache.spark.streaming.kafka.KafkaCluster$anonfun$checkErrors$1.apply(KafkaCluster.scala:366)
        at org.apache.spark.streaming.kafka.KafkaCluster$anonfun$checkErrors$1.apply(KafkaCluster.scala:366)&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 May 2016 04:03:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Kafa-createDirectStream-failed-while-createStream/m-p/143155#M28049</guid>
      <dc:creator>zhusiyao</dc:creator>
      <dc:date>2016-05-12T04:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Kafa createDirectStream failed while createStream successful</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Kafa-createDirectStream-failed-while-createStream/m-p/143156#M28050</link>
      <description>&lt;P&gt;This can have different reasons unfortunately I have seen the same error when using wrong hostnames ( not fully qualified, localhost instead of the full hostname ... ) I have also seen it in the context of security, i.e. when connecting to a kerberized kafka and providing a wrong jaas configuration, ...&lt;/P&gt;&lt;P&gt;First thing I would do is check the broker-host variable. Fully qualify it and see if that fixes anything. &lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 15:00:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Kafa-createDirectStream-failed-while-createStream/m-p/143156#M28050</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-05-12T15:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Kafa createDirectStream failed while createStream successful</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Kafa-createDirectStream-failed-while-createStream/m-p/143157#M28051</link>
      <description>&lt;P&gt;I'm using exactly the same broker list and topics in both command. So I think that won't be the cause.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 01:42:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Kafa-createDirectStream-failed-while-createStream/m-p/143157#M28051</guid>
      <dc:creator>zhusiyao</dc:creator>
      <dc:date>2016-05-13T01:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Kafa createDirectStream failed while createStream successful</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Kafa-createDirectStream-failed-while-createStream/m-p/143158#M28052</link>
      <description>&lt;P&gt;It's a known issue for HDP 2.4 release, &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_HDP_RelNotes/content/known_issues.html"&gt;BUG-51292&lt;/A&gt;. And there is no workaround....&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 05:01:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Kafa-createDirectStream-failed-while-createStream/m-p/143158#M28052</guid>
      <dc:creator>zhusiyao</dc:creator>
      <dc:date>2016-05-13T05:01:00Z</dc:date>
    </item>
  </channel>
</rss>

