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: docs/scalardb-analytics/deployment.mdx
+53-58Lines changed: 53 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,42 @@ tags:
4
4
displayed_sidebar: docsEnglish
5
5
---
6
6
7
-
importTabsfrom'@theme/Tabs';
8
-
importTabItemfrom'@theme/TabItem';
7
+
importTabsfrom"@theme/Tabs";
8
+
importTabItemfrom"@theme/TabItem";
9
9
10
10
# Deploy ScalarDB Analytics in Public Cloud Environments
11
11
12
-
This guide explains how to deploy ScalarDB Analytics in a public cloud environment. ScalarDB Analytics currently uses Apache Spark as an execution engine and supports managed Spark services provided by public cloud providers, such as Amazon EMR and Databricks.
12
+
This guide explains how to deploy ScalarDB Analytics in a public cloud environment. ScalarDB Analytics consists of two main components: a ScalarDB Analytics server and Apache Spark. In this guide, you can choose either Amazon EMR or Databricks for the Spark environment.
13
+
For details about ScalarDB Analytics, refer to [ScalarDB Analytics Design](./design.mdx).
13
14
14
-
## Supported managed Spark services and their application types
15
+
## Deploy ScalarDB Analytics catalog server
16
+
17
+
ScalarDB Analytics requires a catalog server to manage metadata and data source connections. The catalog server should be deployed by using Helm charts on a Kubernetes cluster.
18
+
19
+
For detailed deployment instructions, see [TBD - Helm chart deployment guide].
20
+
21
+
After deploying the catalog server, note the following information for Spark configuration:
22
+
23
+
- Catalog server host address
24
+
- Catalog port (default: 11051)
25
+
- Metering port (default: 11052)
26
+
27
+
## Deploy Spark with ScalarDB Analytics
28
+
29
+
After deploying the catalog server, you can configure and deploy Spark with ScalarDB Analytics by using managed Spark services.
30
+
31
+
### Supported managed Spark services and their application types
15
32
16
33
ScalarDB Analytics supports the following managed Spark services and application types.
17
34
18
-
| Public Cloud Service | Spark Driver | Spark Connect | JDBC |
The following describes what you should change the content in the angle brackets to:
56
72
57
-
-`<SPARK_VERSION>`: The version of Spark.
58
-
-`<SCALA_VERSION>`: The version of Scala used to build Spark.
59
-
-`<SCALARDB_ANALYTICS_VERSION>`: The version of ScalarDB Analytics.
60
-
-`<CATALOG_NAME>`: The name of the catalog.
61
-
-`<YOUR_LICENSE_CERT_PEM>`: The PEM encoded license certificate.
62
-
-`<YOUR_LICENSE_KEY>`: The license key.
73
+
-`<SPARK_VERSION>`: The version of Spark (e.g., `3.5` or `3.4`).
74
+
-`<SCALA_VERSION>`: The version of Scala used to build Spark (for example, `2.13` or `2.12`).
75
+
-`<SCALARDB_ANALYTICS_VERSION>`: The version of ScalarDB Analytics (for example, `3.16.0`).
76
+
-`<CATALOG_NAME>`: The name of the catalog. This must match a catalog created on the ScalarDB Analytics server.
77
+
-`<CATALOG_SERVER_HOST>`: The host address of your ScalarDB Analytics server.
63
78
64
79
For more details, refer to [Set up ScalarDB Analytics in the Spark configuration](./run-analytical-queries.mdx#set-up-scalardb-analytics-in-the-spark-configuration).
65
80
66
81
<h4>Run analytical queries via the Spark driver</h4>
67
82
68
-
After the EMR Spark cluster has launched, you can use ssh to connect to the primary node of the EMR cluster and run your Spark application. For details on how to create a Spark Driver application, refer to [Spark Driver application](./run-analytical-queries.mdx?spark-application-type=spark-driver-application#develop-a-spark-application).
83
+
After the EMR Spark cluster has launched, you can use ssh to connect to the primary node of the EMR cluster and run your Spark application. For details on how to create a Spark driver application, refer to [Spark driver application](./run-analytical-queries.mdx?spark-application-type=spark-driver#develop-a-spark-application).
69
84
70
85
<h4>Run analytical queries via Spark Connect</h4>
71
86
72
87
You can use Spark Connect to run your Spark application remotely by using the EMR cluster that you launched.
73
88
74
-
You first need to configure the Software setting in the same way as the [Spark Driver application](./run-analytical-queries.mdx?spark-application-type=spark-driver-application#develop-a-spark-application). You also need to set the following configuration to enable Spark Connect.
89
+
You first need to configure the Software setting in the same way as the [Spark driver application](./run-analytical-queries.mdx?spark-application-type=spark-driver#develop-a-spark-application). You also need to set the following configuration to enable Spark Connect.
75
90
76
91
<h5>Allow inbound traffic for a Spark Connect server</h5>
77
92
@@ -126,46 +141,26 @@ Note that Databricks provides a modified version of Apache Spark, which works di
126
141
127
142
ScalarDB Analytics works with all-purpose and jobs-compute clusters on Databricks. When you launch the cluster, you need to configure the cluster to enable ScalarDB Analytics as follows:
128
143
129
-
1. Store the license certificate and license key in the cluster by using the Databricks CLI.
144
+
1. Select "No isolation shared" for the cluster mode. (This is required. ScalarDB Analytics works only with this cluster mode.)
145
+
2. Select an appropriate Databricks runtime version that supports Spark 3.4 or later.
146
+
3. Configure "Advanced Options" > "Spark config" as follows:
130
147
131
-
```console
132
-
databricks secrets create-scope scalardb-analytics-secret # you can use any secret scope name
For details on how to install and use the Databricks CLI, refer to the [Databricks CLI documentation](https://docs.databricks.com/en/dev-tools/cli/index.html).
140
-
141
-
:::
142
-
143
-
2. Select "No isolation shared" for the cluster mode. (This is required. ScalarDB Analytics works only with this cluster mode.)
144
-
3. Select an appropriate Databricks runtime version that supports Spark 3.4 or later.
145
-
4. Configure "Advanced Options" > "Spark config" as follows, replacing `<CATALOG_NAME>` with the name of the catalog that you want to use:
You also need to configure the data source. For details, refer to [Set up ScalarDB Analytics in the Spark configuration](./run-analytical-queries.mdx#set-up-scalardb-analytics-in-the-spark-configuration).
157
-
158
-
:::
159
-
160
-
:::note
156
+
Replace the placeholders:
161
157
162
-
If you specified different secret names in the previous step, be sure to replace the secret names in the configuration above.
158
+
-`<CATALOG_NAME>`: The name of the catalog. This must match a catalog created on the ScalarDB Analytics server.
159
+
-`<CATALOG_SERVER_HOST>`: The host address of your ScalarDB Analytics catalog server.
163
160
164
-
:::
165
-
166
-
5. Add the library of ScalarDB Analytics to the launched cluster as a Maven dependency. For details on how to add the library, refer to the [Databricks cluster libraries documentation](https://docs.databricks.com/en/libraries/cluster-libraries.html).
161
+
4. Add the library of ScalarDB Analytics to the launched cluster as a Maven dependency. For details on how to add the library, refer to the [Databricks cluster libraries documentation](https://docs.databricks.com/en/libraries/cluster-libraries.html).
167
162
168
-
<h4>Run analytical queries via the Spark Driver</h4>
163
+
<h4>Run analytical queries via the Spark driver</h4>
169
164
170
165
You can run your Spark application on the properly configured Databricks cluster with Databricks Notebook or Databricks Jobs to access the tables in ScalarDB Analytics. To run the Spark application, you can migrate your Pyspark, Scala, or Spark SQL application to Databricks Notebook, or use Databricks Jobs to run your Spark application. ScalarDB Analytics works with task types for Notebook, Python, JAR, and SQL.
171
166
@@ -185,7 +180,7 @@ Databricks supports JDBC to run SQL jobs on the cluster. You can use this featur
0 commit comments