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

How to migrate data from an existing workspace to a new workspace?

tz1
New Contributor III
 
1 ACCEPTED SOLUTION

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III

If you are referring to workspace as workspace folder there is API for that https://docs.databricks.com/dev-tools/api/latest/workspace.html#export

If you are referring to whole Databricks installation (like Azure workspace). Is more complicated as you need to export infra template, hive metastore etc. (if you have purchased support on Azure/Aws, they can help)

View solution in original post

6 REPLIES 6

Hubert-Dudek
Esteemed Contributor III

If you are referring to workspace as workspace folder there is API for that https://docs.databricks.com/dev-tools/api/latest/workspace.html#export

If you are referring to whole Databricks installation (like Azure workspace). Is more complicated as you need to export infra template, hive metastore etc. (if you have purchased support on Azure/Aws, they can help)

tz1
New Contributor III
Thanks, Hubert.
I am referring to the Delta Tables and the corresponding Hive Tables in Databricks.
Probably closer to the whole Databricks installation you mentioned.

Anonymous
Not applicable

@Tony Zhouโ€‹ - I am the least technical person on the planet. Did Hubert's answer help resolve the problem, or would you like more help?

tz1
New Contributor III

And I got this problem when using the Workspace API 2.0

<html>

<head>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>

<title>Error 401 Unauthorized</title>

</head>

<body><h2>HTTP ERROR 401</h2>

<p>Problem accessing /api/2.0/workspace/export. Reason:

<pre>   Unauthorized</pre></p>

</body>

</html>

Hubert-Dudek
Esteemed Contributor III

Probably access token expired. Please run configure again.

User16753725182
Databricks Employee
Databricks Employee

Hi @Tony Zhouโ€‹ , Were you able to run this after generating a new token?

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