Unknown setting [xpack.security.user] error

I keep getting this "unknown setting [xpack.security.user] please check that any required plugins are installed," error. from document, it says

At a minimum, you must configure xpack.security.user to include the name and password of your transport client user in your requests. The following snippet configures the user credentials globally—every request submitted with this client includes the transport_client_user credentials in its headers.

am I missing any library?

Problem solved. I've imported the wrong transport client.

i import 5.0.1 and get the same error. What version have you import?

instead of using the right client:

client = new PreBuiltXPackTransportClient(settings);

I using this, which cause the error:

TransportClient client = new PreBuiltTransportClient(settings)

1 Like

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