public static String normalizeHost(String host) { try { InetAddress address = InetAddress.getByName(host); if (isLocalAddress(address)) { return InetAddress.getLocalHost().getHostAddress(); } else { return address.getHostAddress(); } } catch (UnknownHostException e) { } return host; } }
public static String normalizeHost(String host) { try { InetAddress address = InetAddress.getByName(host); if (isLocalAddress(address)) { return InetAddress.getLocalHost().getHostAddress(); } else { return address.getHostAddress(); } } catch (UnknownHostException e) { } return host; } }
if (NetUtils.isLocalAddress(address) && conn.getPullServerPort() == uri.getPort()) { localStoreChunkCount++; runnerList.add(new LocalFetcher(systemConf, uri, executionBlockContext, f.getName()));
if (NetUtils.isLocalAddress(address) && conn.getPullServerPort() == uri.getPort()) {