Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
wahmed20
Resolver I
Resolver I

Connecting elasticsearch using python client

I have python code working on my computer.

 

from elasticsearch import Elasticsearch
es = Elasticsearch(
    hosts=[{'host': 'ip', 'port': 9200}],
    http_auth=('name', 'username'),

)

I want to run on the notebook of fabric. It is giving timeout error which may be because the ip is accesible using my computer. I have installed gateway on my computer. What should I do?

 

 

1 ACCEPTED SOLUTION
wahmed20
Resolver I
Resolver I

The code works if you run the notebook with Vs code extension
see more on https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension

View solution in original post

1 REPLY 1
wahmed20
Resolver I
Resolver I

The code works if you run the notebook with Vs code extension
see more on https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.