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:ย 

Facing issue in the below mentioned code: dbutils.notebook.entry_point.getDbutils().notebook().getContext().tags().get('browserHostName').get() while executing through workflow, but it's totally working fine with workspace.

Prank
New Contributor III

Please do let me know how to resolve this issue?

10 REPLIES 10

Prank
New Contributor III

Is that means it couldnโ€™t be possible we can retrieve the instance name with workflow using this method?

Having one more doubt using workflow as well we are using the notebook only so then how is it different scenario?

Anonymous
Not applicable

Hi @Pranchal Guptaโ€‹ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

Prank
New Contributor III

I am having some doubts like using workflow as well we are using the notebook so why we not able to access the hostname how is it different scenario and what other ways possible to get the instance name?

Anonymous
Not applicable

Hi @Pranchal Guptaโ€‹ 

I'm sorry you could not find a solution to your problem in the answers provided.

Our community strives to provide helpful and accurate information, but sometimes an immediate solution may only be available for some issues.

I suggest providing more information about your problem, such as specific error messages, error logs or details about the steps you have taken. This can help our community members better understand the issue and provide more targeted solutions.

Alternatively, you can consider contacting the support team for your product or service. They may be able to provide additional assistance or escalate the issue to the appropriate section for further investigation.

Thank you for your patience and understanding, and please let us know if there is anything else we can do to assist you.

tessaickx
New Contributor III

I had the same question... 

I found you can achieve the same with spark.conf.get('spark.databricks.workspaceUrl')

BilalAslamDbrx
Databricks Employee
Databricks Employee

@Prank  why do you want the browser hostname?

Hi @BilalAslamDbrx 
I am not @Prank  but I needed it for calling the serving_endpoints API.

"https://{databricks_host}/api/2.0/serving-endpoints/"
 

Ah I see @tessaickx ... did the `spark.conf` solution work for you?

It does work yes.

Awesome thanks @tessaickx ๐Ÿ™‚ 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group