hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bahniman Roy <bahniman_...@yahoo.com>
Subject Re: MiniDFSCluster error on windows.
Date Mon, 14 Nov 2011 05:17:40 GMT

Edward J. Yoon <edward@...> 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)


Mime
View raw message