Skip to Main Content

Developer Community

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connecting client to Opensearch managed service

3636740Feb 26 2024

Hi,

I setup an opensearch cluster to the point where I am able to write data to the cluster and reading using curl commands from my VM.

However, when using a client like python, I am unable to connect to the opensearch cluster.

I have no unusual security settings, just basic auth setup based on this doc - https://docs.oracle.com/en-us/iaas/Content/search-opensearch/Tasks/ingestingociopensearchdata.htm

A simple ping to my opensearch cluster via python library API will timeout..

es_client = OpenSearch(
hosts = [{'host': host, 'port': port}],
http_compress = True, # enables gzip compression for request bodies
http_auth=("username", "pwd"), 
use_ssl = False,
verify_certs = False,
ssl_assert_hostname = False,
ssl_show_warn = True,
)
es_client.ping()

However, curl command works properly from the same VM.

Let me know if I am missing something in my setup to use a client.

Thanks,

Meet

Comments
Post Details
Added on Feb 26 2024
0 comments
539 views