code: public static InetSocketAddress getAddress(JobConf conf, String key) {
      String str = conf.get(key);
      if (str == null)
        return null;
      String hostPortPair[] = str.split(":");
      if (hostPortPair.length != 2)
        return null;
      return new InetSocketAddress(hostPortPair[0],
          Integer.parseInt(hostPortPair[1]));
    }
docs: Deserialize InetSocketAddress from String from given key in conf
  @param conf job conf
  @param key name of entry
  @return address