You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/mongodb/vcore/connect-from-databricks.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,14 @@ This article walks you through connecting Azure Cosmos DB for MongoDB vCore usin
30
30
31
31
You can follow instructions to [provision an Azure Databricks cluster](/azure/databricks/scenarios/quickstart-create-databricks-workspace-portal). We recommend selecting Databricks runtime version 7.6, which supports Spark 3.0.
32
32
33
-
:::image type="content" source="./media/migrate-databricks/databricks-cluster-creation.png" alt-text="Diagram of databricks new cluster creation.":::
33
+
:::image type="content" source="../media/migrate-databricks/databricks-cluster-creation.png" alt-text="Diagram of databricks new cluster creation.":::
34
34
35
35
36
36
## Add dependencies
37
37
38
38
Add the MongoDB Connector for Spark library to your cluster to connect to both native MongoDB and Azure Cosmos DB for MongoDB endpoints. In your cluster, select **Libraries** > **Install New** > **Maven**, and then add `org.mongodb.spark:mongo-spark-connector_2.12:3.0.1` Maven coordinates.
39
39
40
-
:::image type="content" source="./media/migrate-databricks/databricks-cluster-dependencies.png" alt-text="Diagram of adding databricks cluster dependencies.":::
40
+
:::image type="content" source="../media/migrate-databricks/databricks-cluster-dependencies.png" alt-text="Diagram of adding databricks cluster dependencies.":::
41
41
42
42
Select **Install**, and then restart the cluster when installation is complete.
43
43
@@ -98,7 +98,7 @@ Output:
98
98
:::image type="content" source="./media/connect-from-databricks/print-schema.png" alt-text="Screenshot of the Print Schema.":::
99
99
100
100
**DataFrame**
101
-
:::image type="content" source="./media/connect-from-databricks/display-dataframe.png" alt-text="Screenshot of the Display DataFrame.":::
101
+
:::image type="content" source="./media/connect-from-databricks/display-df-vcore.png" alt-text="Screenshot of the Display DataFrame.":::
102
102
103
103
### Filter data from Azure Cosmos DB for MongoDB vCore
104
104
@@ -115,7 +115,7 @@ display(df_v)
115
115
```
116
116
117
117
Output:
118
-
:::image type="content" source="./media/connect-from-databricks/display-filtered-data.png" alt-text="Screenshot of the Display Filtered DataFrame.":::
118
+
:::image type="content" source="./media/connect-from-databricks/display-filter.png" alt-text="Screenshot of the Display Filtered DataFrame.":::
119
119
120
120
### Create a view or temporary table and run SQL queries against it
121
121
@@ -133,7 +133,7 @@ display(df_v)
133
133
```
134
134
135
135
Output:
136
-
:::image type="content" source="./media/connect-from-databricks/display-sql-query.png" alt-text="Screenshot of the Display SQL Query.":::
136
+
:::image type="content" source="./media/connect-from-databricks/display-sql.png" alt-text="Screenshot of the Display SQL Query.":::
137
137
138
138
### Write data to Azure Cosmos DB for MongoDB vCore
139
139
@@ -164,7 +164,7 @@ display(df_vcore)
164
164
```
165
165
166
166
Output:
167
-
:::image type="content" source="./media/connect-from-databricks/display-aggregate-data.png" alt-text="Screenshot of the Display Aggregate Data.":::
167
+
:::image type="content" source="./media/connect-from-databricks/display-agg.png" alt-text="Screenshot of the Display Aggregate Data.":::
0 commit comments