azure-databricks Questions

4

I am able to execute a simple SQL statement using PySpark in Azure Databricks but I want to execute a stored procedure instead. Below is the PySpark code I tried. #initialize pyspark import findsp...
Muller asked 22/2, 2020 at 16:43

3

Actually I want to install a library on my Azure databricks cluster but I cannot use the UI method because every time my cluster would change and in transition I cannot add library to it using UI. ...
Nanon asked 5/3, 2020 at 11:0

5

I am using Azure Databricks to make a delta table in Azure Blob Storage using ADLS Gen2 but i am getting the error "Failure to initialize configurationInvalid configuration value detected for ...
Lith asked 3/11, 2021 at 13:13

3

Solved

I have modified some code kindly provided by @Bhagyashree in an attempt to mount abfss on ADLS Gen 2 container_name = "root" storage_account = "mystorageaccount" key = "xxx...
Simba asked 22/5, 2023 at 21:9

3

Solved

I have been following the document: https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/aad/service-prin-aad-token to create a service principal and use it to access Databricks....

7

Solved

Can someone let me know how to use the databricks dbutils to delete all files from a folder. I have tried the following but unfortunately, Databricks doesn't support wildcards. dbutils.fs.rm('adl...
Quarterhour asked 7/1, 2019 at 20:48

3

Solved

I'm trying to use a module in databrick's notebook but I am completely blocked. I'd like to execute the following command or anything similar which allow my to make instances of MyClass from mypac...
Succinylsulfathiazole asked 18/9, 2019 at 11:17

4

I am fairly new to Databricks, so forgive me for the lack of knowledge here. I am using the Databricks resource in Azure. I mainly use the UI right now, but I know some features are only available ...
Ioyal asked 24/11, 2021 at 12:50

2

I am trying to read data on an Azure SQL instance from an Azure Databricks workspace, avoiding using username/password personal credentials for automated, regular data fetch & analysis. I thoug...

5

I want to delete data from a delta file in databricks. Im using these commands Ex: PR=spark.read.format('delta').options(header=True).load('/mnt/landing/Base_Tables/EventHistory/') PR.write.format(...
Dissatisfaction asked 7/12, 2020 at 10:3

1

I'm getting this error Can't pickle <class 'google.protobuf.pyext._message.CMessage'>: it's not found as google.protobuf.pyext._message.CMessage when I try to create a UDF in PySpark. A...

3

Solved

I've seen a couple of posts on using Selenium in Databricks using %shto install Chrome Drivers and Chrome. This works fine for me, but I had a lot of trouble when I needed to download a file. The f...
Parrish asked 4/6, 2021 at 0:26

6

I am trying to mount adls gen2 in dattabricks with following configuration configs = {"fs.azure.account.auth.type": "OAuth", "fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs...
Schleswig asked 2/3, 2019 at 20:34

4

Solved

I am using DataBricks as a service on Azure. This is my cluster info : I ran below command and everythings was o. %sql Select * from db_xxxxx.t_fxxxxxxxxx limit 10 Then I have updated some...
Grandiloquent asked 3/9, 2020 at 20:17

2

I want to use Dask on Databricks. It should be possible (I cannot see why not). If I import it, one of two things happens, either I get an ImportError but when I install distributed to solve this D...
Desorb asked 4/6, 2019 at 12:53

1

The following code works as expected for batch, but fails for streaming queries with the infamous AnalysisException: Non-time-based windows are not supported on streaming DataFrames/Datasets f...

4

Solved

I am trying get the workspace name inside a python notebook. Is there any way we can do this? Ex: My workspace name is databricks-test. I want to capture this in variable in python notebook
Grudging asked 31/1, 2022 at 21:16

1

Solved

I'm trying to upload a python file as a workspace file to my Shared Databricks workspace. Using both the CLI and the REST API each Python file I upload turns into a notebook automatically, but I wa...

3

I would like to create a Databricks job using a Git reference to an Azure Devops repo, the reference would ideally use the git credentials of a service principal. Adding the service principal to th...
Mandymandych asked 22/5, 2023 at 11:46

2

When trying to execute local spark code with databricks-connect 13.2.0, it does not work. I have the following issue: Error: details = "INVALID_STATE: cluster xxxxx is not Shared or Single Us...

2

Solved

I'm struggling to write back to an Azure Blob Storage Container. I'm able to read from a container using the following: storage_account_name = "expstorage" storage_account_key = "1VP...
Disarrange asked 11/9, 2020 at 16:36

5

Solved

I need to read dataset into a DataFrame, then write the data to Delta Lake. But I have the following exception : AnalysisException: 'Incompatible format detected.\n\nYou are trying to write to `d...
Reconnaissance asked 16/7, 2019 at 8:21

1

If we have PyPi Packages added as Artifacts to an Azure DevOps Project Feed, how can we use these packages as a source for installing packages in DatabricksStep of Azure Machine Learning Service? W...

3

Solved

We are trying out Unity catalog in Azure Databricks. We connected a pre-existing workspace to the new metastore. I created a new catalog. When I run a notebook and try to write to table "myfir...

3

i want to list all the tables in every database in Azure Databricks. so i want the output to look somewhat like this: Database | Table_name Database1 | Table_1 Database1 | Table_2 Database1 | Table...
Rhodium asked 22/9, 2020 at 16:12

© 2022 - 2024 — McMap. All rights reserved.