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
FabricCarousel_June2024

Fabric Monthly Update - June 2024

Check out the June 2024 Fabric update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.