java.net.BindException

Port in use: 0.0.0.0:50105

Samebug tips3

Try changing the port in core-site.xml from 9000 to 9001 as it seems port 9000 doesn't work.

Change the connection port and ip adress. If you're trying to connect to your server from your own computer, check if you haven't already connected to the server in another instance.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3638

  • via hadoop-hdfs-dev by Apache Jenkins Server, 9 months ago
    Port in use: 0.0.0.0:50105
  • via hadoop-hdfs-issues by Brahma Reddy Battula (JIRA), 1 year ago
    Port in use: 0.0.0.0:50070
  • via GitHub by abhay-agarwal
    , 10 months ago
    Port in use: 0.0.0.0:8480
  • Stack trace

    • java.net.BindException: Port in use: 0.0.0.0:50105 at org.apache.hadoop.http.HttpServer.start(HttpServer.java:693) at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer$1.run(NameNodeHttpServer.java:179) at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer$1.run(NameNodeHttpServer.java:103) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1157) at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:103) at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:419) at org.apache.hadoop.hdfs.server.namenode.NameNode.activate(NameNode.java:391) at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:344) at org.apache.hadoop.hdfs.server.namenode.BackupNode.initialize(BackupNode.java:145) at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:459) at org.apache.hadoop.hdfs.server.namenode.BackupNode.<init>(BackupNode.java:85) at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:749) at org.apache.hadoop.hdfs.server.namenode.TestBackupNode.startBackupNode(TestBackupNode.java:90) at org.apache.hadoop.hdfs.server.namenode.TestBackupNode.__CLR3_0_2kq7cz1e4l(TestBackupNode.java:131) at org.apache.hadoop.hdfs.server.namenode.TestBackupNode.testBackupNodeTailsEdits(TestBackupNode.java:121) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:81) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216) at org.apache.hadoop.http.HttpServer.start(HttpServer.java:650) ... 41 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    35 times, 2 hours ago
    9 times, 1 day ago
    Once, 3 days ago
    8 times, 1 week ago
    136 more bugmates