<?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: How can I resolve java.net.BindException: Address already in use Error? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/101005#M13718</link>
    <description>&lt;P&gt;At time, due to incomplete shutdown, previous process still may be using the port. So just check the process that is using the port and (if it is the same process you are trying to start, which it is in 99.9% of the cases) then just kill the previous process before starting. &lt;/P&gt;&lt;PRE&gt;netstat -lnap | grep &amp;lt;port&amp;gt;
#The output has the process id in it
kill -9 &amp;lt;pid&amp;gt; 

# After the process is killed, try starting the service. &lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Dec 2015 10:47:14 GMT</pubDate>
    <dc:creator>bsaini</dc:creator>
    <dc:date>2015-12-30T10:47:14Z</dc:date>
    <item>
      <title>How can I resolve java.net.BindException: Address already in use Error?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/101002#M13715</link>
      <description>&lt;P&gt;2014-08-27 10:50:47,196 WARN 
 component.AbstractLifeCycle (AbstractLifeCycle.java:setFailed(204)) - 
FAILED SelectChannelConnector@0.0.0.0:4040: java.net.BindException: 
Address already in use&lt;/P&gt;&lt;P&gt;java.net.BindException: Address already in use&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 21:06:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/101002#M13715</guid>
      <dc:creator>lakumivnarayana</dc:creator>
      <dc:date>2015-12-29T21:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve java.net.BindException: Address already in use Error?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/101003#M13716</link>
      <description>&lt;P&gt;What does netstat -nap | grep 4040 gives. you will get the output with the process id . Check what process it is.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 21:20:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/101003#M13716</guid>
      <dc:creator>Jagatheeshr</dc:creator>
      <dc:date>2015-12-29T21:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve java.net.BindException: Address already in use Error?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/101004#M13717</link>
      <description>&lt;P&gt;When a spark context is created, it starts an application UI on port 4040 by default. When the UI starts, it checks to see if the port is in use, if so it should increment to 4041. Looks like you have something running on port 4040 there. The application should show you the warning, then try to start the UI on 4041.&lt;/P&gt;&lt;P&gt;This should not stop your application from running.  If you really want to get around the WARNING, you can manually specify which port for the UI to start on, but I would strongly advise against doing so.&lt;/P&gt;&lt;P&gt;To manually specify the port, add this to your spark-submit:&lt;/P&gt;&lt;PRE&gt;--conf spark.ui.port=your_port
&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Dec 2015 06:43:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/101004#M13717</guid>
      <dc:creator>jwiden</dc:creator>
      <dc:date>2015-12-30T06:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve java.net.BindException: Address already in use Error?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/101005#M13718</link>
      <description>&lt;P&gt;At time, due to incomplete shutdown, previous process still may be using the port. So just check the process that is using the port and (if it is the same process you are trying to start, which it is in 99.9% of the cases) then just kill the previous process before starting. &lt;/P&gt;&lt;PRE&gt;netstat -lnap | grep &amp;lt;port&amp;gt;
#The output has the process id in it
kill -9 &amp;lt;pid&amp;gt; 

# After the process is killed, try starting the service. &lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Dec 2015 10:47:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/101005#M13718</guid>
      <dc:creator>bsaini</dc:creator>
      <dc:date>2015-12-30T10:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve java.net.BindException: Address already in use Error?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/293858#M13719</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;can I instead add the following line to spark-defaults.conf file:&lt;/P&gt;&lt;P&gt;spark.ui.port&amp;nbsp;&amp;nbsp; 4041&lt;/P&gt;&lt;P&gt;Will that have the same effect ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 19:25:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-resolve-java-net-BindException-Address-already-in/m-p/293858#M13719</guid>
      <dc:creator>amnag</dc:creator>
      <dc:date>2020-04-13T19:25:19Z</dc:date>
    </item>
  </channel>
</rss>

