<?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 Error while running structured streaming example “WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected” in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232217#M194059</link>
    <description>&lt;P&gt;While running "structured_kafka_wordcount.py" example given in "&lt;A href="https://github.com/apache/spark/blob/v2.3.1/examples/src/main/python/sql/streaming/structured_kafka_wordcount.py"&gt;https://github.com/apache/spark/blob/v2.3.1/examples/src/main/python/sql/streaming/structured_kafka_wordcount.py&lt;/A&gt;" I got following error: "&lt;STRONG&gt;WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;I was able to read the content of a topic from kafka as given it the example &lt;A href="https://github.com/apache/spark/blob/master/examples/src/main/python/streaming/kafka_wordcount.py" target="_blank"&gt;https://github.com/apache/spark/blob/master/examples/src/main/python/streaming/kafka_wordcount.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I submitted these job with command "&lt;STRONG&gt;bin/spark-submit --packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.3.1 examples/src/main/python/sql/streaming/structured_kafka_wordcount.py ip-10-28-3-35.ec2.internal:2181 subscribe fifa2&lt;/STRONG&gt;"&lt;/P&gt;&lt;PRE&gt;&amp;lt;code&amp;gt;[root@centos spark2]# bin/spark-submit --packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.3.1 examples/src/main/python/sql/streaming/structured_kafka_wordcount.py ip-10-28-3-35.ec2.internal:2181 subscribe fifa2
Ivy Default Cache set to: /root/.ivy2/cache
The jars for the packages stored in: /root/.ivy2/jars
:: loading settings :: url = jar:file:/usr/hdp/2.6.5.0-292/spark2/jars/ivy-2.4.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
org.apache.spark#spark-sql-kafka-0-10_2.11 added as a dependency
:: resolving dependencies :: org.apache.spark#spark-submit-parent;1.0
        confs: [default]
        found org.apache.spark#spark-sql-kafka-0-10_2.11;2.3.1 in central
        found org.apache.kafka#kafka-clients;0.10.0.1 in central
        found net.jpountz.lz4#lz4;1.3.0 in central
        found org.xerial.snappy#snappy-java;1.1.2.6 in central
        found org.slf4j#slf4j-api;1.7.16 in central
        found org.spark-project.spark#unused;1.0.0 in central
:: resolution report :: resolve 642ms :: artifacts dl 15ms
        :: modules in use:
        net.jpountz.lz4#lz4;1.3.0 from central in [default]
        org.apache.kafka#kafka-clients;0.10.0.1 from central in [default]
        org.apache.spark#spark-sql-kafka-0-10_2.11;2.3.1 from central in [default]
        org.slf4j#slf4j-api;1.7.16 from central in [default]
        org.spark-project.spark#unused;1.0.0 from central in [default]
        org.xerial.snappy#snappy-java;1.1.2.6 from central in [default]
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   6   |   0   |   0   |   0   ||   6   |   0   |
        ---------------------------------------------------------------------
:: retrieving :: org.apache.spark#spark-submit-parent
        confs: [default]
        0 artifacts copied, 6 already retrieved (0kB/17ms)
18/06/22 06:57:26 WARN Utils: Service 'SparkUI' could not bind on port 4040. Attempting port 4041.
18/06/22 06:57:26 WARN Utils: Service 'SparkUI' could not bind on port 4041. Attempting port 4042.
18/06/22 06:57:35 WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected
18/06/22 06:57:35 WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected
18/06/22 06:57:35 WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected
18/06/22 06:57:35 WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected
^Z
[11]+  Stopped                 bin/spark-submit --packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.3.1 examples/src/main/python/sql/streaming/structured_kafka_wordcount.py ip-10-28-3-35.ec2.internal:2181 subscribe fifa2&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Jun 2018 14:23:36 GMT</pubDate>
    <dc:creator>mahesh454347</dc:creator>
    <dc:date>2018-06-22T14:23:36Z</dc:date>
    <item>
      <title>Error while running structured streaming example “WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected”</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232217#M194059</link>
      <description>&lt;P&gt;While running "structured_kafka_wordcount.py" example given in "&lt;A href="https://github.com/apache/spark/blob/v2.3.1/examples/src/main/python/sql/streaming/structured_kafka_wordcount.py"&gt;https://github.com/apache/spark/blob/v2.3.1/examples/src/main/python/sql/streaming/structured_kafka_wordcount.py&lt;/A&gt;" I got following error: "&lt;STRONG&gt;WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;I was able to read the content of a topic from kafka as given it the example &lt;A href="https://github.com/apache/spark/blob/master/examples/src/main/python/streaming/kafka_wordcount.py" target="_blank"&gt;https://github.com/apache/spark/blob/master/examples/src/main/python/streaming/kafka_wordcount.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I submitted these job with command "&lt;STRONG&gt;bin/spark-submit --packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.3.1 examples/src/main/python/sql/streaming/structured_kafka_wordcount.py ip-10-28-3-35.ec2.internal:2181 subscribe fifa2&lt;/STRONG&gt;"&lt;/P&gt;&lt;PRE&gt;&amp;lt;code&amp;gt;[root@centos spark2]# bin/spark-submit --packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.3.1 examples/src/main/python/sql/streaming/structured_kafka_wordcount.py ip-10-28-3-35.ec2.internal:2181 subscribe fifa2
Ivy Default Cache set to: /root/.ivy2/cache
The jars for the packages stored in: /root/.ivy2/jars
:: loading settings :: url = jar:file:/usr/hdp/2.6.5.0-292/spark2/jars/ivy-2.4.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
org.apache.spark#spark-sql-kafka-0-10_2.11 added as a dependency
:: resolving dependencies :: org.apache.spark#spark-submit-parent;1.0
        confs: [default]
        found org.apache.spark#spark-sql-kafka-0-10_2.11;2.3.1 in central
        found org.apache.kafka#kafka-clients;0.10.0.1 in central
        found net.jpountz.lz4#lz4;1.3.0 in central
        found org.xerial.snappy#snappy-java;1.1.2.6 in central
        found org.slf4j#slf4j-api;1.7.16 in central
        found org.spark-project.spark#unused;1.0.0 in central
:: resolution report :: resolve 642ms :: artifacts dl 15ms
        :: modules in use:
        net.jpountz.lz4#lz4;1.3.0 from central in [default]
        org.apache.kafka#kafka-clients;0.10.0.1 from central in [default]
        org.apache.spark#spark-sql-kafka-0-10_2.11;2.3.1 from central in [default]
        org.slf4j#slf4j-api;1.7.16 from central in [default]
        org.spark-project.spark#unused;1.0.0 from central in [default]
        org.xerial.snappy#snappy-java;1.1.2.6 from central in [default]
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   6   |   0   |   0   |   0   ||   6   |   0   |
        ---------------------------------------------------------------------
:: retrieving :: org.apache.spark#spark-submit-parent
        confs: [default]
        0 artifacts copied, 6 already retrieved (0kB/17ms)
18/06/22 06:57:26 WARN Utils: Service 'SparkUI' could not bind on port 4040. Attempting port 4041.
18/06/22 06:57:26 WARN Utils: Service 'SparkUI' could not bind on port 4041. Attempting port 4042.
18/06/22 06:57:35 WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected
18/06/22 06:57:35 WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected
18/06/22 06:57:35 WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected
18/06/22 06:57:35 WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected
^Z
[11]+  Stopped                 bin/spark-submit --packages org.apache.spark:spark-sql-kafka-0-10_2.11:2.3.1 examples/src/main/python/sql/streaming/structured_kafka_wordcount.py ip-10-28-3-35.ec2.internal:2181 subscribe fifa2&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jun 2018 14:23:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232217#M194059</guid>
      <dc:creator>mahesh454347</dc:creator>
      <dc:date>2018-06-22T14:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running structured streaming example “WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected”</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232218#M194060</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20171/mahesh454347.html" nodeid="20171"&gt;@Mahesh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please give Kafka broker hostname:port instead of zookeeper_host:2181 in the command? The following error:&lt;/P&gt;&lt;PRE&gt;WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected

&lt;/PRE&gt;&lt;P&gt;Means that its unable to reach to correct Kafka broker because zookeeper information has been given. Please let me know how it goes.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jun 2018 05:28:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232218#M194060</guid>
      <dc:creator>dbains</dc:creator>
      <dc:date>2018-06-23T05:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running structured streaming example “WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected”</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232219#M194061</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20171/mahesh454347.html" nodeid="20171"&gt;@Mahesh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi, Did the suggestion help?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 05:51:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232219#M194061</guid>
      <dc:creator>dbains</dc:creator>
      <dc:date>2018-06-26T05:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running structured streaming example “WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected”</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232220#M194062</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11149/dbains.html" nodeid="11149"&gt;@dbains,&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I Checked the kafka broker port on my HDP cluster and it was 6667. Although I was confused between Bootstrap Server and Kafka Broker, I was giving zookeeper_ip:2181. It worked  after passing ip-address:6667.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 00:33:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232220#M194062</guid>
      <dc:creator>mahesh454347</dc:creator>
      <dc:date>2018-06-27T00:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running structured streaming example “WARN NetworkClient: Bootstrap broker ip-10-28-3-35.ec2.internal:2181 disconnected”</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232221#M194063</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/20171/mahesh454347.html" nodeid="20171"&gt;@Mahesh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Glad it worked!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 01:25:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-while-running-structured-streaming-example-WARN/m-p/232221#M194063</guid>
      <dc:creator>dbains</dc:creator>
      <dc:date>2018-06-27T01:25:32Z</dc:date>
    </item>
  </channel>
</rss>

