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

Get certified as a Fabric Data Engineer: Check your eligibility for a 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700. 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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!