public static void setAddress ( JobConf conf , String key , InetSocketAddress address ) { if ( address == null ) { conf . unset ( key ) ; return ; } String addrStr = address . getHostName ( ) + ":" + address . getPort ( ) ; conf . set ( key , addrStr ) ; }
Serialize InetSocketAddress to String and saves in given conf