public Endpoint getShuffleEndpoint() { final int shufflePort = HiveConf.getIntVar(conf, ConfVars.LLAP_DAEMON_YARN_SHUFFLE_PORT); // HTTP today, but might not be return RegistryTypeUtils.inetAddrEndpoint(IPC_SHUFFLE, ProtocolTypes.PROTOCOL_TCP, hostname, shufflePort); }
/** * Register a port endpoint as an inet-addr formatted endpoint, using the * hostname as the first part of the address * @param port port port * @param api API API name */ public void registerPortEndpoint(int port, String api) { Endpoint epr = RegistryTypeUtils.inetAddrEndpoint(api, ProtocolTypes.PROTOCOL_TCP, host, port); addEndpoint(epr); }
public Endpoint getShuffleEndpoint() { final int shufflePort = HiveConf.getIntVar(conf, ConfVars.LLAP_DAEMON_YARN_SHUFFLE_PORT); // HTTP today, but might not be return RegistryTypeUtils.inetAddrEndpoint(IPC_SHUFFLE, ProtocolTypes.PROTOCOL_TCP, hostname, shufflePort); }
/** * Register a port endpoint as an inet-addr formatted endpoint, using the * hostname as the first part of the address * @param port port port * @param api API API name */ public void registerPortEndpoint(int port, String api) { Endpoint epr = RegistryTypeUtils.inetAddrEndpoint(api, ProtocolTypes.PROTOCOL_TCP, host, port); addEndpoint(epr); }
api = line.getOptionValue("api"); sr.addExternalEndpoint( inetAddrEndpoint(api, ProtocolTypes.PROTOCOL_HADOOP_IPC, hostName, portNum));
api = line.getOptionValue("api"); sr.addExternalEndpoint( inetAddrEndpoint(api, ProtocolTypes.PROTOCOL_HADOOP_IPC, hostName, portNum));
/** * Add some endpoints * @param entry entry */ public static void addSampleEndpoints(ServiceRecord entry, String hostname) throws URISyntaxException { assertNotNull(hostname); entry.addExternalEndpoint(webEndpoint(HTTP_API, new URI("http", hostname + ":80", "/"))); entry.addExternalEndpoint( restEndpoint(API_WEBHDFS, new URI("http", hostname + ":8020", "/"))); Endpoint endpoint = ipcEndpoint(API_HDFS, null); endpoint.addresses.add(RegistryTypeUtils.hostnamePortPair(hostname, 8030)); entry.addInternalEndpoint(endpoint); InetSocketAddress localhost = new InetSocketAddress("localhost", 8050); entry.addInternalEndpoint( inetAddrEndpoint(NNIPC, ProtocolTypes.PROTOCOL_THRIFT, "localhost", 8050)); entry.addInternalEndpoint( RegistryTypeUtils.ipcEndpoint( IPC2, localhost)); }
/** * Add some endpoints * @param entry entry */ public static void addSampleEndpoints(ServiceRecord entry, String hostname) throws URISyntaxException { assertNotNull(hostname); entry.addExternalEndpoint(webEndpoint(HTTP_API, new URI("http", hostname + ":80", "/"))); entry.addExternalEndpoint( restEndpoint(API_WEBHDFS, new URI("http", hostname + ":8020", "/"))); Endpoint endpoint = ipcEndpoint(API_HDFS, null); endpoint.addresses.add(RegistryTypeUtils.hostnamePortPair(hostname, 8030)); entry.addInternalEndpoint(endpoint); InetSocketAddress localhost = new InetSocketAddress("localhost", 8050); entry.addInternalEndpoint( inetAddrEndpoint(NNIPC, ProtocolTypes.PROTOCOL_THRIFT, "localhost", 8050)); entry.addInternalEndpoint( RegistryTypeUtils.ipcEndpoint( IPC2, localhost)); }
new URI("http", "//rack4server3:43572", null))); comp1.addInternalEndpoint( inetAddrEndpoint("jmx", "JMX", "rack4server3", 43573)); new URI("http", "//rack1server28:35881", null))); comp2.addInternalEndpoint( inetAddrEndpoint("jmx", "JMX", "rack1server28", 35882));