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

tz1
New Contributor III
 

Hubert-Dudek
Databricks MVP

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)


My blog: https://databrickster.medium.com/

View solution in original post

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>

Probably access token expired. Please run configure again.


My blog: https://databrickster.medium.com/

User16753725182
Databricks Employee
Databricks Employee

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