Hi,
I know we can create TransportClient with something like - new TransportClient(settings).addTransportAddress(new InetSocketTransportAddress(host, port));
But here, I have to explicitly provide host and port info in my code.
I tried to get the instance of Transport Client solely through configuration properties in yml file. But it does not seem to work. I am getting "NoNodeAvailableException".
Here's content of my yml file -
Hi,
I know we can create TransportClient with something like - new
TransportClient(settings).addTransportAddress(new
InetSocketTransportAddress(host, port));
But here, I have to explicitly provide host and port info in my code.
I tried to get the instance of Transport Client solely through
configuration properties in yml file. But it does not seem to work. I am
getting "NoNodeAvailableException".
Here's content of my yml file -
Isn't transport.host is used to bind to or publish a certain IP address of a node?
If yes, then it cannot be used to specify remote host that will used to connect to for discovery.
But I did try both of the following settings, and neither of it works -
On Jun 13, 2012, at 2:46 AM, Sebastian Wendel wrote:
Hi Ashish,
maybe that what you're looking for:
transport.host: eth1:ipv4
Greetings,
Sebastian
2012/6/13 Ashish Nigam ashish@skyhighnetworks.com
Hi,
I know we can create TransportClient with something like - new TransportClient(settings).addTransportAddress(new InetSocketTransportAddress(host, port));
But here, I have to explicitly provide host and port info in my code.
I tried to get the instance of Transport Client solely through configuration properties in yml file. But it does not seem to work. I am getting "NoNodeAvailableException".
Here's content of my yml file -
Hi,
I know we can create TransportClient with something like - new
TransportClient(settings).addTransportAddress(new
InetSocketTransportAddress(host, port));
But here, I have to explicitly provide host and port info in my code.
I tried to get the instance of Transport Client solely through
configuration properties in yml file. But it does not seem to work. I am
getting "NoNodeAvailableException".
Here's content of my yml file -
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.