Secure connection using transport client

↘锁芯ラ 提交于 2021-01-29 20:10:52

问题


Need to connect to a secure elastic search which has https authentication using Transport client in java code. I have userId and password to connect however need example on how can we do it? I am using elasticsearch 5.6.0.

I was looking for xpack and sheild options but could not make use of them.


回答1:


I used PreBuiltXpackTransportClient and could connect to the secured elastic search server. Refer documentation here.



来源:https://stackoverflow.com/questions/54327118/secure-connection-using-transport-client

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!