<?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: Java SocketTimeoutExpcetion is thrown when publishing message to Kafka from outside of HDP 2.3 sandbox. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Java-SocketTimeoutExpcetion-is-thrown-when-publishing/m-p/132513#M95183</link>
    <description>&lt;P&gt;Thank you very much for your reply. I have resolved this issue by changing listeners property in Kafka Broker section via Ambari from&lt;/P&gt;&lt;P&gt;    PLAINTEXT://localhost:6667&lt;/P&gt;&lt;P&gt;To&lt;/P&gt;&lt;P&gt;PLAINTEXT://sandbox.hortonworks.com:6667&lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2016 22:17:59 GMT</pubDate>
    <dc:creator>donaldyy</dc:creator>
    <dc:date>2016-02-09T22:17:59Z</dc:date>
    <item>
      <title>Java SocketTimeoutExpcetion is thrown when publishing message to Kafka from outside of HDP 2.3 sandbox.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Java-SocketTimeoutExpcetion-is-thrown-when-publishing/m-p/132510#M95180</link>
      <description>&lt;P&gt;I have HDP 2.3.2 Sandbox. Currently I am learning Kafka and following the Hortonwok Kafka tutorial, Real time Data transportation and Ingestion. If I run the tutorial from my windows box, which is outside of Sandbox, (see [1]), I got the SocketTimeoutException (see [2]). I can see the socket connection is established from my windows box to HDP Sandbox and I can access Ambari and Hue from my windows box. I have verified that SELinux on HDP Sandbox has been disabled.&lt;/P&gt;&lt;P&gt;However if I copy the jar from my windows box to HDP Sandbox and run it inside HDP Sandbox, everything is fine as I can see the messages have been successfully published.&lt;/P&gt;&lt;P&gt;Could you please anyone give me a clue how to solve this issue? Many thanks in advance.&lt;/P&gt;&lt;P&gt;[1] command to run Hortonwork Kafka Tutorial&lt;/P&gt;&lt;P&gt;java -cp target/Tutorial-1.0-SNAPSHOT.jar com.hortonworks.tutorials.tutorial1.TruckEventsProducer sandbox.hortonworks.com:6667 sandbox.hortonworks.com:2181&lt;/P&gt;&lt;P&gt;[2] SocketTimeException&lt;/P&gt;&lt;P&gt;16/02/09 09:41:50 WARN client.ClientUtils$: Fetching topic metadata with correlation id 0 for topics [Set(truckevent)] from broker [BrokerEndPoint(0,sandbox.hortonworks.com,6667)] failed
java.net.SocketTimeoutException
        at sun.nio.ch.SocketAdaptor$SocketInputStream.read(Unknown Source)
        at sun.nio.ch.ChannelInputStream.read(Unknown Source)
        at java.nio.channels.Channels$ReadableByteChannelImpl.read(Unknown Source)
        at kafka.utils.CoreUtils$.read(CoreUtils.scala:192)
        at kafka.network.BoundedByteBufferReceive.readFrom(BoundedByteBufferReceive.scala:54)
        at kafka.network.Receive$class.readCompletely(Transmission.scala:56)
        at kafka.network.BoundedByteBufferReceive.readCompletely(BoundedByteBufferReceive.scala:29)
        at kafka.network.BlockingChannel.receive(BlockingChannel.scala:131)
        at kafka.producer.SyncProducer.liftedTree1$1(SyncProducer.scala:77)
        at kafka.producer.SyncProducer.kafka$producer$SyncProducer$doSend(SyncProducer.scala:74)
        at kafka.producer.SyncProducer.send(SyncProducer.scala:115)
        at kafka.client.ClientUtils$.fetchTopicMetadata(ClientUtils.scala:59)
        at kafka.producer.BrokerPartitionInfo.updateInfo(BrokerPartitionInfo.scala:82)
        at kafka.producer.async.DefaultEventHandler$anonfun$handle$1.apply$mcV$sp(DefaultEventHandler.scala:68)
        at kafka.utils.CoreUtils$.swallow(CoreUtils.scala:89)
        at kafka.utils.Logging$class.swallowError(Logging.scala:106)
        at kafka.utils.CoreUtils$.swallowError(CoreUtils.scala:51)
        at kafka.producer.async.DefaultEventHandler.handle(DefaultEventHandler.scala:68)
        at kafka.producer.Producer.send(Producer.scala:84)
        at kafka.javaapi.producer.Producer.send(Producer.scala:33)
        at com.hortonworks.tutorials.tutorial1.TruckEventsProducer.main(TruckEventsProducer.java:106)&lt;/P&gt;&lt;H1&gt;&lt;/H1&gt;</description>
      <pubDate>Tue, 09 Feb 2016 20:05:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Java-SocketTimeoutExpcetion-is-thrown-when-publishing/m-p/132510#M95180</guid>
      <dc:creator>donaldyy</dc:creator>
      <dc:date>2016-02-09T20:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Java SocketTimeoutExpcetion is thrown when publishing message to Kafka from outside of HDP 2.3 sandbox.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Java-SocketTimeoutExpcetion-is-thrown-when-publishing/m-p/132511#M95181</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2674/donaldyy.html" nodeid="2674"&gt;@yong yang&lt;/A&gt;&lt;P&gt; Did you set this? Make sure that you follow the tutorial step by step in sandbox. &lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Configure Storm&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You can check the below configurations by pasting them into the Filter text box under the Service Actions dropdown&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Check zookeeper configuration: ensure &lt;CODE&gt;storm.zookeeper.servers&lt;/CODE&gt; is set to &lt;STRONG&gt;sandbox.hortonworks.com&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 09 Feb 2016 20:10:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Java-SocketTimeoutExpcetion-is-thrown-when-publishing/m-p/132511#M95181</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-09T20:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Java SocketTimeoutExpcetion is thrown when publishing message to Kafka from outside of HDP 2.3 sandbox.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Java-SocketTimeoutExpcetion-is-thrown-when-publishing/m-p/132512#M95182</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2674/donaldyy.html" nodeid="2674"&gt;@yong yang&lt;/A&gt; you need to make sure sandbox.Hortonworks.com is in your windows hosts file. Your windows needs to know such an address exists.&lt;/P&gt;&lt;P&gt;Find path for your OS version &lt;A href="http://www.thewindowsclub.com/hosts-file-in-windows" target="_blank"&gt;http://www.thewindowsclub.com/hosts-file-in-windows&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 20:49:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Java-SocketTimeoutExpcetion-is-thrown-when-publishing/m-p/132512#M95182</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-09T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Java SocketTimeoutExpcetion is thrown when publishing message to Kafka from outside of HDP 2.3 sandbox.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Java-SocketTimeoutExpcetion-is-thrown-when-publishing/m-p/132513#M95183</link>
      <description>&lt;P&gt;Thank you very much for your reply. I have resolved this issue by changing listeners property in Kafka Broker section via Ambari from&lt;/P&gt;&lt;P&gt;    PLAINTEXT://localhost:6667&lt;/P&gt;&lt;P&gt;To&lt;/P&gt;&lt;P&gt;PLAINTEXT://sandbox.hortonworks.com:6667&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 22:17:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Java-SocketTimeoutExpcetion-is-thrown-when-publishing/m-p/132513#M95183</guid>
      <dc:creator>donaldyy</dc:creator>
      <dc:date>2016-02-09T22:17:59Z</dc:date>
    </item>
  </channel>
</rss>

