You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by "Edward J. Yoon" <ed...@udanax.org> on 2008/04/11 18:40:31 UTC
MiniDFSCluster error on windows.
It occurs only on windows system. (cygwin)
Does anyone have the solution?
----
Testcase: testCosine took 0.708 sec
Caused an ERROR
Address family not supported by protocol family: bind
java.net.SocketException: Address family not supported by protocol family: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.apache.hadoop.ipc.Server.bind(Server.java:182)
at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:243)
at org.apache.hadoop.ipc.Server.<init>(Server.java:963)
at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:393)
at org.apache.hadoop.ipc.RPC.getServer(RPC.java:355)
at org.apache.hadoop.dfs.NameNode.initialize(NameNode.java:122)
at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:177)
at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:163)
at org.apache.hadoop.dfs.NameNode.createNameNode(NameNode.java:866)
at org.apache.hadoop.dfs.MiniDFSCluster.<init>(MiniDFSCluster.java:264)
at org.apache.hadoop.dfs.MiniDFSCluster.<init>(MiniDFSCluster.java:113)
--
B. Regards,
Edward J. Yoon
Re: MiniDFSCluster error on windows.
Posted by Bahniman Roy <ba...@yahoo.com>.
Edward J. Yoon <ed...@...> writes:
>
> It occurs only on windows system. (cygwin)
> Does anyone have the solution?
>
> ----
> Testcase: testCosine took 0.708 sec
> Caused an ERROR
> Address family not supported by protocol family: bind
> java.net.SocketException: Address family not supported by protocol family:
bind
> at sun.nio.ch.Net.bind(Native Method)
> at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
> 119)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> at org.apache.hadoop.ipc.Server.bind(Server.java:182)
> at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:243)
> at org.apache.hadoop.ipc.Server.<init>(Server.java:963)
> at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:393)
> at org.apache.hadoop.ipc.RPC.getServer(RPC.java:355)
> at org.apache.hadoop.dfs.NameNode.initialize(NameNode.java:122)
> at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:177)
> at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:163)
> at org.apache.hadoop.dfs.NameNode.createNameNode(NameNode.java:866)
> at org.apache.hadoop.dfs.MiniDFSCluster.<init>
(MiniDFSCluster.java:264)
> at org.apache.hadoop.dfs.MiniDFSCluster.<init>
(MiniDFSCluster.java:113)
>
Potential solutions:
1. Update hosts file in System32\drivers\etc\hosts,
replace ::1 with ::127.0.0.1
or, (2) update the hadoop configuration file (substitute localhost with
127.0.0.1)