cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Kartikb
by • New Contributor II
  • 2694 Views
  • 4 replies
  • 4 kudos

Resolved! code execution from Databrick folder

We are able to run a notebook that references Python code using import statements from a Databricks repowith the source code checked out. However, we encounter a ModuleNotFoundError when executing the same code from a folder.Error: ModuleNotFoundErro...

  • 2694 Views
  • 4 replies
  • 4 kudos
Latest Reply
Kartikb
New Contributor II
  • 4 kudos

Below worked as you have suggested.import os, sysproject_path = os.path.abspath("/Workspace/<folder-name-1>/<folder-name-2>/<top-level-code-folder>")if project_path not in sys.path:    sys.path.append(project_path) 

  • 4 kudos
3 More Replies
adrjuju
by • New Contributor II
  • 2787 Views
  • 3 replies
  • 0 kudos

S3 Data access through unity

Hey All I have the following issue : I've connected a s3 bucket through unity catalog as an external source. I perfectly see the files of my s3 bucket when i scroll through the catalog using the user interface. However when I try to connect through a...

  • 2787 Views
  • 3 replies
  • 0 kudos
Latest Reply
adrjuju
New Contributor II
  • 0 kudos

Hey Chandra thank you for your answer. The path is a volume path indeed, : /Volumes/my_path_in_volume

  • 0 kudos
2 More Replies
swzzzsw
by • Databricks Partner
  • 10731 Views
  • 6 replies
  • 0 kudos

Resolved! SQLServerException: deadlock

I'm using databricks to connect to a SQL managed instance via JDBC. SQL operations I need to perform include DELETE, UPDATE, and simple read and write. Since spark syntax only handles simple read and write, I had to open SQL connection using Scala an...

image.png
  • 10731 Views
  • 6 replies
  • 0 kudos
Latest Reply
Panda
Valued Contributor
  • 0 kudos

@swzzzsw Since you are performing database operations, to reduce the chances of deadlocks, make sure to wrap your SQL operations inside transactions using commit and rollback.Another approachs to consider is adding retry logic or using Isolation Leve...

  • 0 kudos
5 More Replies
Kayla
by • Valued Contributor II
  • 4582 Views
  • 1 replies
  • 0 kudos

External Table From BigQuery

I'm working on implementing Unity Catalog, and part of that is determining how to handle our BigQuery tables. We need to utilize them to connect to another application, or else we'd stay within regular delta tables on Databricks.The page https://docs...

  • 4582 Views
  • 1 replies
  • 0 kudos
Latest Reply
lorenz_singer
New Contributor II
  • 0 kudos

Hi Kayla,I know your question is already a year old, but it's possible to create BigQuery tables in Unity Catalog: https://docs.gcp.databricks.com/en/query-federation/bigquery.htmlBest regardsLorenz

  • 0 kudos
emilyawalker
by • New Contributor
  • 1726 Views
  • 1 replies
  • 0 kudos

How can I effectively integrate my ai laptop’s local resources with Databricks for AI model training

Hi everyone, I’m currently working on AI projects and using an ai laptop for local development, while leveraging Databricks for larger model training and experimentation. I’m looking for advice on how to effectively integrate my ai laptop local resou...

  • 1726 Views
  • 1 replies
  • 0 kudos
Latest Reply
-werners-
Esteemed Contributor III
  • 0 kudos

Those are a lot of questions.For each of your questions, one could come up with an answer that runs locally on your computer.But......you will probably regret this as it will be very hard to maintain and deploy to databricks.It won't be an exact copy...

  • 0 kudos
PJ11
by • New Contributor
  • 4421 Views
  • 1 replies
  • 0 kudos

Upset Plot in Databricks

I am trying to create an Upset Plot using following code, but my output is not as expected. See Image1: Output which I am getting vs Image2: Output expected. Where the total count of overlap is displayed at the top of each bar, Bar size is proportion...

  • 4421 Views
  • 1 replies
  • 0 kudos
Latest Reply
filipniziol
Esteemed Contributor
  • 0 kudos

Hi @PJ11 ,As per documentation: UpSetPlot internally works with data based on Pandas data structures: a Series when all you care about is counts, or a DataFrame when you’re interested in visualising additional properties of the data, such as with the...

  • 0 kudos
Chikke
by • New Contributor III
  • 1788 Views
  • 2 replies
  • 4 kudos

Resolved! Cannot be able to find DBFS under settings->Advance in the Databricks community edition.

Cannot be able to find DBFS under settings->Advance in the Databricks community edition.

  • 1788 Views
  • 2 replies
  • 4 kudos
Latest Reply
gchandra
Databricks Employee
  • 4 kudos

It's fixed. You can continue to use Upload.

  • 4 kudos
1 More Replies
Kanna1706
by • New Contributor III
  • 4570 Views
  • 3 replies
  • 0 kudos

DBFS option

I can't find dbfs option in my free data bricks community edition when I tried to see location of the table.

  • 4570 Views
  • 3 replies
  • 0 kudos
Latest Reply
gchandra
Databricks Employee
  • 0 kudos

It's fixed. You can continue to use Upload.

  • 0 kudos
2 More Replies
Maverick11
by • New Contributor
  • 1152 Views
  • 1 replies
  • 0 kudos

FROM databricksruntime/standard:11.3-LTS as application

Below command was working until yesterday for 11.3-LTS  base image. It started failing from today (17Oct 2024 11AM IST)FROM databricksruntime/standard:11.3-LTS as applicationRUN apt-get install -y python3-venv It throws the error :Reading package lis...

  • 1152 Views
  • 1 replies
  • 0 kudos
Latest Reply
gchandra
Databricks Employee
  • 0 kudos

Any specific reason you are trying to containerize this? Can you try adding an apt-get update before python3-venv RUN apt-get update && \          apt-get install -y python3-venv

  • 0 kudos
GodSpeed
by • New Contributor II
  • 2363 Views
  • 1 replies
  • 0 kudos

Jenkins Alternatives for Data Pipeline Automation?

I’ve been managing data pipelines with Jenkins but would like to explore other options that might work better for data-centric projects. Has anyone tried GitLab CI or Azure DevOps for similar use cases? Looking for insights into what might offer bett...

  • 2363 Views
  • 1 replies
  • 0 kudos
Latest Reply
Stefan-Koch
Databricks Partner
  • 0 kudos

You can use Github Actions or Azure DevOps as an alternative.I use Azure DevOps Pipelines for my projects and have had very good experiences. You can find instructions on how to do the whole thing with Github Actions for example, in the official docu...

  • 0 kudos
MihaiTache
by • New Contributor II
  • 4720 Views
  • 4 replies
  • 1 kudos

Resolved! Get job run_id of run_job_task in an orchestration job

Hi,I have a Databricks job which orchestrates the run of two jobs: job1 and job2 using run_job_task.job2 depends on job1 and would need to use the run_id of job1 as a parameter. How can this be done?I see that you can only easily access the task run ...

  • 4720 Views
  • 4 replies
  • 1 kudos
Latest Reply
Panda
Valued Contributor
  • 1 kudos

@MihaiTache You can achieve this by utilizing a combination of dbutils.widgets.get and dbutils.jobs.taskValues.set. The approach involves extracting the run_id from Job1 and passing it as a value to Job2 using taskValues.set. This allows seamless com...

  • 1 kudos
3 More Replies
tj-cycyota
by • Databricks Employee
  • 5533 Views
  • 4 replies
  • 1 kudos

Can you use the Databricks API from a notebook?

I want to test out different APIs directly from a Databricks notebook instead of using Postman or CURL. Is this possible?

  • 5533 Views
  • 4 replies
  • 1 kudos
Latest Reply
Boris2
New Contributor II
  • 1 kudos

@Panda There is no REST API for databricks. "RE" in REST stands for Ready Everywhere. You cannot connect to the API in workspace 1, from a notebook in workspace 2. Therefor it is Not Ready Everywhere. Workspace 1 cannot resolve the hostname for Works...

  • 1 kudos
3 More Replies
sashikanth
by • Databricks Partner
  • 2535 Views
  • 2 replies
  • 1 kudos

Job optimization

How to increase the resource efficiency in databricks jobs?We see that idle cost is more than the utilization cost. Any guidelines will be helpful Please share some examples.

  • 2535 Views
  • 2 replies
  • 1 kudos
Latest Reply
-werners-
Esteemed Contributor III
  • 1 kudos

My main improvements are:- use singlenode job clusters for small data- cluster reuse (so use the same job cluster for multiple tasks, in parallel or serial)- use autoscaling only when it is very hard to find a good fixed sizing, otherwise go for fixe...

  • 1 kudos
1 More Replies
User16752245312
by • Databricks Employee
  • 29363 Views
  • 3 replies
  • 4 kudos

How can I make Databricks API calls from notebook?

Access to Databricks APIs require the user to authenticate. This usually means creating a PAT (Personal Access Token) token. Conveniently, a token is readily available to you when you are using a Databricks notebook.databricksURL = dbutils.notebook....

  • 29363 Views
  • 3 replies
  • 4 kudos
Latest Reply
Panda
Valued Contributor
  • 4 kudos

@User16752245312  You can use Databricks Secret Scope to manage sensitive data such as personal access tokens (PATs) securely. Storing your token in a secret scope ensures you don’t hard-code credentials in your notebook, making it more secure.For mo...

  • 4 kudos
2 More Replies
Labels