Understanding "getAzureDataSource"

Mohammad Saber 591 Reputation points
2022-09-26T01:54:08.64+00:00

I am practicing with Azure Databricks. In a sample notebook, I have seen the following code:

(source, sasEntity, sasToken) = getAzureDataSource()

spark.conf.set(sasEntity, sasToken)

I didn't understand it well and also I couldn't find explanations in the documentation.

Could you explain a little bit about above commands? If you know where it is explained in the documentation, please share the URL with me.

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,331 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,541 Reputation points
    2022-10-12T10:37:19.14+00:00

    Hello @Mohammad Saber ,

    Apologize for the delay in response.

    Yes, I had import using the above url and the command getAzureDataSource() which gets the details of the parameters source, sasEntity and sasToken from the previous command %run "./Includes/Classroom-Setup" and set in the spark configuration using the spark.conf.set as shown below:

    Later on you can use the above parameters in the below commands.

    249636-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is jhow you can be part of Q&A Volunteer Moderators
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Mahjube Jamiul Ahmadi 30 Reputation points
    2023-01-25T18:49:23.0733333+00:00

    Hi,

    I am practicing with same exercise. I faced this error. Can someone help me?

    java.util.NoSuchElementException: com.databricks.training.azure.datasource

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.