You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Gonzalo Herreros (JIRA)" <ji...@apache.org> on 2015/10/30 09:20:28 UTC

[jira] [Commented] (FLUME-2832) Caught exception during HTTP server start

    [ https://issues.apache.org/jira/browse/FLUME-2832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14982119#comment-14982119 ] 

Gonzalo Herreros commented on FLUME-2832:
-----------------------------------------

java.net.BindException: Address already in use: bind
It might not be obvious because it speaks of "address" but it means the port is taken. It's possible to bind the port to a different address but normally you don't want that.
Use a different port or find which process is taking it.

I would also advice you to upgrade to a modern version of Flume


> Caught exception during HTTP server start
> -----------------------------------------
>
>                 Key: FLUME-2832
>                 URL: https://issues.apache.org/jira/browse/FLUME-2832
>             Project: Flume
>          Issue Type: Bug
>          Components: Node
>    Affects Versions: v0.9.4
>         Environment:  'flume-node-0.9.4' on Windows 8 (Node 1)
> and another in cent os 6.5 (node 2)
>            Reporter: Harikrishna
>
> I have installed 'flume-node-0.9.4' on Windows 8 (Node 1)
> and another in cent os 6.5 (node 2)
> i have to pull the data from windows to linux using flume agent from windows
> my windows log files in E:/success/logs
> so i'm not enable to localhost on 35872 in windows agent.
> 15/10/30 11:25:58 WARN util.InternalHttpServer: Caught exception during HTTP server start.
> java.net.BindException: Address already in use: bind
> 	at sun.nio.ch.Net.bind0(Native Method)
> 	at sun.nio.ch.Net.bind(Unknown Source)
> 	at sun.nio.ch.Net.bind(Unknown Source)
> 	at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
> 	at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
> 	at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
> 	at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at org.mortbay.jetty.Server.doStart(Server.java:235)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at com.cloudera.util.InternalHttpServer.start(InternalHttpServer.java:188)
> 	at com.cloudera.flume.agent.FlumeNode.start(FlumeNode.java:275)
> 	at com.cloudera.flume.agent.FlumeNodeDaemon.start(FlumeNodeDaemon.java:86)
> 	at com.cloudera.flume.agent.FlumeNodeDaemon.windowsService(FlumeNodeDaemon.java:54)
> 15/10/30 11:25:58 ERROR agent.FlumeNode: Unexpected exception/error thrown! Unable to start HTTP server
> com.cloudera.util.InternalHttpServer$InternalHttpServerException: Unable to start HTTP server
> 	at com.cloudera.util.InternalHttpServer.start(InternalHttpServer.java:194)
> 	at com.cloudera.flume.agent.FlumeNode.start(FlumeNode.java:275)
> 	at com.cloudera.flume.agent.FlumeNodeDaemon.start(FlumeNodeDaemon.java:86)
> 	at com.cloudera.flume.agent.FlumeNodeDaemon.windowsService(FlumeNodeDaemon.java:54)
> Caused by: java.net.BindException: Address already in use: bind
> 	at sun.nio.ch.Net.bind0(Native Method)
> 	at sun.nio.ch.Net.bind(Unknown Source)
> 	at sun.nio.ch.Net.bind(Unknown Source)
> 	at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
> 	at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
> 	at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
> 	at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at org.mortbay.jetty.Server.doStart(Server.java:235)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> 	at com.cloudera.util.InternalHttpServer.start(InternalHttpServer.java:188)
> 	... 3 more
> 15/10/30 11:25:58 INFO agent.MultiMasterRPC: 
> 15/10/30 11:25:58 INFO agent.AvroMasterRPC: Connected to master at localhost:35872
> 15/10/30 11:26:02 INFO agent.MultiMasterRPC: 
> 15/10/30 11:26:02 INFO agent.AvroMasterRPC: Connected to master at localhost:35872
> 15/10/30 11:26:03 INFO agent.MultiMasterRPC: 
> 15/10/30 11:26:03 INFO agent.AvroMasterRPC: Connected to master at localhost:35872
> please kindly suggest me.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)