hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Himanshu Vashishtha <vashishth...@gmail.com>
Subject Re: Socket Factories in hadoop
Date Sat, 31 Jul 2010 16:33:06 GMT
Hello,
You can define your own SocketFactory. Have a look at the method:
public static SocketFactory getSocketFactory(Configuration conf,
      Class<?> clazz){...} in the class org.apache.hadoop.net.NetUtils.java

Cheers,
Himanshu

On Sat, Jul 31, 2010 at 10:08 AM, Ahmad Shahzad <ashahzad4@gmail.com> wrote:

> Hi ALL,
>           Where can i find the socket factories that are used by hadoop to
> create its sockets. By this i mean to say that map-reduce framework of
> hadoop along with HDFS uses sockets to communicate with each other. So, i
> am
> looking for socket factories that hadoop framework uses to carry out its
> work. I looked into the hadoop directory and could find SocksSocketFactory
> and StandardSocketFactory java classes in core/org/apache/hadoop/net
> directory. Are these the only socket factories used by hadoop or is there
> any more??
>
> One more thing, can i create my own socket factory and use that to create
> sockets that can be used by hadoop??
>
> Ahmad
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message