Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.
The "SocketException" page has been changed by SteveLoughran: https://wiki.apache.org/hadoop/SocketException?action=diff&rev1=2&rev2=3 Comment: java.net.SocketException: Permission denied Remember: These are [[YourNetworkYourProblem|your network configuration problems]] . Only you can fix them. + + == Permission denied == + + This can arise if the service is configured to listen on a port numbered less than 1024, but is not running as a user with the appropriate + permissions. + + {{{ + 2016-03-22 15:26:18,905 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: Exception in secureMain + java.net.SocketException: Permission denied + at sun.nio.ch.Net.bind0(Native Method) + at sun.nio.ch.Net.bind(Net.java:433) + at sun.nio.ch.Net.bind(Net.java:425) + at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) + at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) + at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125) + at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:522) + at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1196) + at io.netty.channel.ChannelHandlerInvokerUtil.invokeBindNow(ChannelHandlerInvokerUtil.java:108) + at io.netty.channel.DefaultChannelHandlerInvoker.invokeBind(DefaultChannelHandlerInvoker.java:214) + at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:208) + at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1003) + at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:216) + at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:357) + at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:322) + at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:356) + at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:703) + at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) + at java.lang.Thread.run(Thread.java:745) + 2016-03-22 15:26:18,907 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1 + 2016-03-22 15:26:18,908 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG: + /************************************************************ + + }}} + + Fixes: either run the service (here, the Datanode) as a user with permissions, or change the service configuration to use a higher + numbered port. +
