TransportClient with username and password


(paranoiabla) #1

Hello,

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: http://gopivotal:PASSWORD@fili-us-east-1.searchly.com. 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:
http://docs.run.pivotal.io/marketplace/services/searchly.html


(system) #4