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
Sept Fabric Carousel

Fabric Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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