TransportClient with username and password

(paranoiabla) #1


I want to create elasticsearch TransportClient with basic authentication. I see that the TransportClient uses InetSocketTransportAddress but this only accepts host and port. However the url I have is this: Is there any way to specify username and password on the TransportClient?

(David Pilato) #2

Are you sure this URL is not the REST endpoint ?

If it is you can not use a Transport Client.

(paranoiabla) #3

OK I see... I found this here a bit too late:

(system) #4