Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to connect Elasticsearch to Jupyter Notebook on GCP

Hi,

I am working on an ML project which requires to use Transformers and Elasticsearch.

For Transformers, I have created a Jupyter Notebook instance on GCP.

For Elasticsearch I will create another instance on CGP.

As part of project requirement, I need to access Elasticsearch in Jupyter Notebook through port 9200. I need to ingest data in Elasticsearch and run search queries which can fetch relevant information from Elasticsearch DB and give it in Notebook.

My question is that if I create two separate instances of Notebook and Elasticsearch and if i try to connect Elasticsearch through Jupyter Notebook via port 9200, will i be able to connect and perform the above mentioned operations ?

If NO, then what is the procedure to do so ?

0 3 882
3 REPLIES 3