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

seefoods
by • Valued Contributor
  • 1398 Views
  • 0 replies
  • 0 kudos

use dbutils outside a notebook

Hello everyone, I want to use dbtuil function outside my notebook, so i will use it in my external jar.I have add dbutil librairies in my build.sbt file "com.databricks" %% "dbutils-api" % "0.0.6"I have import the librairie on top of my code import c...

  • 1398 Views
  • 0 replies
  • 0 kudos
erwingm10
by • New Contributor
  • 1629 Views
  • 1 replies
  • 0 kudos

Get Level Cluster Metrics

Im looking for a way to Optimize the consumption of the jobs in my company and the last piece of data to achieve this is the statistics of the Cluster Level Metrics called Active Tasks over time. Do we have any way to get this? Seems easy when is alr...

  • 1629 Views
  • 1 replies
  • 0 kudos
Latest Reply
szymon_dybczak
Esteemed Contributor III
  • 0 kudos

 Hi @erwingm10 ,Unfortunately, currently that there is no direct endpoint in REST API to get cluster metrics. You can extract some ganglia metrics through custom scripting, but they're not so detailed like the one you looking for.Look at below links ...

  • 0 kudos
Avinash_Narala
by • Databricks Partner
  • 3587 Views
  • 1 replies
  • 0 kudos

Mosaic AI

Hi,While going through recent releases of databricks, I came to know about the Mosaic AI.And i am little bit confused what mosaic AI exactly is? what it is offering? from a data engineering point of view what benefits can i expect?Anyone please answe...

  • 3587 Views
  • 1 replies
  • 0 kudos
Latest Reply
szymon_dybczak
Esteemed Contributor III
  • 0 kudos

Hi @Avinash_Narala ,I think it is more targeted to people that are creating machine learning models or data scientist.Here you can read about it and as you can see it's all related to ML models, Gen AI, RAG etc.:https://www.databricks.com/product/mac...

  • 0 kudos
wallco26
by • New Contributor III
  • 7699 Views
  • 3 replies
  • 0 kudos

Databricks External Data SQL Server Connection Dirty Reads

I've connected a SQL Server database as an external connection in Unity Catalog. It looks like when I write SELECT queries to that connection I end up locking my tables on the SQL Server. Is there a way to query these tables using a "with (nolock)" c...

Data Engineering
Database
SQL Server
  • 7699 Views
  • 3 replies
  • 0 kudos
Latest Reply
wallco26
New Contributor III
  • 0 kudos

Thanks Slash - where would the "with (nolock)" command fall into the SQL Syntax...within the OPTIONS section? What would the specific command look like? 

  • 0 kudos
2 More Replies
Devsql
by • New Contributor III
  • 3600 Views
  • 4 replies
  • 1 kudos

What is difference between _RAW tables and _APPEND_RAW tables of Bronze-Layer of Azure Databricks

Hi Team,I would like to know difference between _RAW tables and _APPEND_RAW tables of Bronze-Layer.As both are STREAMING Tables then why we need 2 separate tables.Note: we are following Medalion Architecture. Also above tables are created via Delta L...

Data Engineering
Azure Databricks
Delta Live Table
Delta Live Table Pipeline
  • 3600 Views
  • 4 replies
  • 1 kudos
Latest Reply
Devsql
New Contributor III
  • 1 kudos

Hi @Retired_mod , I saw your replies to other posts, so thought to ask you....would you like to help me on this...!!!

  • 1 kudos
3 More Replies
PP09
by • New Contributor II
  • 2262 Views
  • 1 replies
  • 1 kudos

job failing with below error massage

Caused by: HTTP Error -1; url='https://login.microsoftonline.com/271df5c2-953a-497b-93ad-7adf7a4b3cd7/oauth2/token' AzureADAuthenticator.getTokenCall threw java.net.UnknownHostException : login.microsoftonline.comshaded.databricks.azurebfs.org.apache...

  • 2262 Views
  • 1 replies
  • 1 kudos
Latest Reply
jenshumrich
Contributor
  • 1 kudos

This was caused for me by the line (pyspark):children = [f for f in dbutils.fs.ls(node)]with the node being a"dbfs:/mnt/lifestrategy-blob/scada/"and this a mounted directory. It seems like the implementation of dbutils.fs is done with the same qualit...

  • 1 kudos
guangyi
by • Contributor III
  • 7377 Views
  • 5 replies
  • 6 kudos

Resolved! Why is the workflow trigger status always paused?

I create a workflow job via Asset Bundle. However, after deploying the job to the databricks the trigger status is always paused even no matter how I update the cron expression. I can manually trigger it successfully. I cannot figure out why. Am I mi...

Screenshot 2024-07-16 at 12.05.51.png Screenshot 2024-07-16 at 12.06.50.png
  • 7377 Views
  • 5 replies
  • 6 kudos
Latest Reply
jacovangelder
Databricks MVP
  • 6 kudos

Next to the cron expression, you also need the following property: pause_statusFor example:schedule: quartz_cron_expression: 0 0 6 * * ? timezone_id: Europe/Amsterdam pause_status: UNPAUSEDThe property can be set to PAUSED and UNPAUSED. Hope th...

  • 6 kudos
4 More Replies
ksenija
by • Contributor
  • 2704 Views
  • 2 replies
  • 1 kudos

Resolved! DLT pipeline - reading from external tables

Hello!I created a DLT pipeline where my sources are external tables. I have to apply changes (stored_as_scd_type = 1). However, when I run my pipeline, I don't see any incremental uploads. The data remains in the same state as when I first created th...

  • 2704 Views
  • 2 replies
  • 1 kudos
Latest Reply
lucasrocha
Databricks Employee
  • 1 kudos

Hello @ksenija, I hope this message finds you well. Is your source table receiving new records? If so, are the fields (operation/sequenceNum) being filled? If possible, please provide a sample of the code you are using to create your target table wit...

  • 1 kudos
1 More Replies
Avinash_Narala
by • Databricks Partner
  • 1487 Views
  • 0 replies
  • 0 kudos

shared serverless vs dedicated serverless?

Hi All,I gone through https://docs.databricks.com/en/admin/system-tables/serverless-billing.html and wondering..How serverless compute is shared across workloads.is there a option to setup that? difference between shared serverless vs dedicated serve...

  • 1487 Views
  • 0 replies
  • 0 kudos
theanhdo
by • New Contributor III
  • 3793 Views
  • 1 replies
  • 0 kudos

Resolved! Databricks Asset Bundles library dependencies - JAR file

Hi there,I have used databricks asset bundles (DAB) to deploy workflows. For each job, I will create a job cluster and install external libraries by specifying libraries in each task, for example:- task_key: my-task  job_cluster_key: my-cluster  note...

  • 3793 Views
  • 1 replies
  • 0 kudos
Latest Reply
theanhdo
New Contributor III
  • 0 kudos

Thanks very much @Retired_mod for your thorough answer.

  • 0 kudos
thackman
by • Databricks Partner
  • 2650 Views
  • 1 replies
  • 0 kudos

Python udfs, Spark Connect, included modules. Compatibility issues with shared compute

Our current system uses Databricks notebooks and we have some shared notebooks that define some python udfs. This was working for us until we tried to switch from single user clusters to shared clusters. Shared clusters and serverless now use Spark C...

  • 2650 Views
  • 1 replies
  • 0 kudos
Latest Reply
thackman
Databricks Partner
  • 0 kudos

I'm not sure what you mean by "Ensure the Python binary's location is correctly set to resolve runtime issues" . We aren't using any binaries. Everything is just Databricks notebooks.  In our case if we define a python udf function in the root notebo...

  • 0 kudos
YS1
by • Contributor
  • 7636 Views
  • 4 replies
  • 5 kudos

Resolved! SQL Server To Databricks Table Migration

Hello,Is there an equivalent SQL code for the following Pyspark code? I'm trying to copy a table from SQL Server to Databricks and save it as a managed delta table.jdbcHostname = "your_sql_server_hostname" jdbcPort = 1433 jdbcDatabase = "your_databas...

  • 7636 Views
  • 4 replies
  • 5 kudos
Latest Reply
jacovangelder
Databricks MVP
  • 5 kudos

The only option to have it in Databricks SQL is lakehouse federation with a SQL Server connection. 

  • 5 kudos
3 More Replies
operryman
by • New Contributor
  • 1433 Views
  • 0 replies
  • 0 kudos

Performance drop from databricks 12.2 to 14.3 LTS - solved with checkpoint(), looking for root cause

On databricks 12.2, a piece of code which has an action takes a minute to run.On databricks 14.3, the same code unchanged, same inputs, now takes 10 minutes.Attempting to debug using explain() shows the plan is huge (150k plus rows of output)Replacin...

  • 1433 Views
  • 0 replies
  • 0 kudos
VenkateswarluAd
by • New Contributor
  • 3649 Views
  • 2 replies
  • 1 kudos

DLT- apply_changes() SCD2 - Rename_columns : __START_AT & __END_AT

 Renaming the column names of the __START_AT and __END_AT columns created when using the dlt.apply_changes() method for performing SCD2 type updates.

  • 3649 Views
  • 2 replies
  • 1 kudos
Latest Reply
Ravivarma
Databricks Employee
  • 1 kudos

Hello @VenkateswarluAd , Greetings of the day! The columns __START_AT and __END_AT are used to track the validity period of each record for SCD Type 2 updates. Please be aware that renaming these columns could disrupt the functionality of the SCD Typ...

  • 1 kudos
1 More Replies
Magesh2798
by • New Contributor II
  • 1839 Views
  • 0 replies
  • 1 kudos

Query execution after establishing Databricks to Information Design Tool JDBC Connection

Hello all,I have created a JDBC connection from Databricks to Information Design Tool using access token generated using Databricks Service Principal.But it’s throwing below error while running query on top of Databricks data in Information Design Bu...

  • 1839 Views
  • 0 replies
  • 1 kudos
Labels