How to pass username and password using transport client

Hi,
I am using search guard on elasticsearch. In my java code i have used Transport client. But I am not able to access index. Exception is
ElasticsearchSecurityException[No user found for indices:data/read/search].

I want to provide username and password with client. Please provide solution to pass username and password.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.