# Setting up the Spark SDK

After you create the workspace, including the data connections, the next step is to set up the SDK.

For a Spark SDK workspace, at the top right corner of the workspace management view, the **Generate Data** button is replaced with an **SDK Setup** button.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FrwKGmp8y8IUyEN3UCLwm%2FSparkSDK_SDKSetupOption.png?alt=media&#x26;token=4bcdc0c0-0ce5-4dcc-b860-0bb1a104185a" alt=""><figcaption><p>SDK Setup option for a Spark SDK workspace</p></figcaption></figure>

To get started, click **SDK Setup**.

## Generating an API token

On the **API Token** tab of the setup panel, to create an API Token, click **Create API token**.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FPXlBxnHuU7jZzH5wtSM5%2FSparkSDK_SetupAPIToken.png?alt=media&#x26;token=e56707d1-dbd6-4d1a-8708-bc2e11de8d18" alt=""><figcaption><p>API Token tab of the Spark SDK setup panel</p></figcaption></figure>

After you create the API token, use the copy icons to copy the following values, which you will need to run the data generation:

* API token
* Workspace ID

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2F0PkxxjZygt9mRRNSPIvz%2FSparkSDK_SetupAPITokenGenerated.png?alt=media&#x26;token=dc51e6d6-6b22-4abe-9090-667e731c37c4" alt=""><figcaption><p>API Token tab with a generated token</p></figcaption></figure>

When you're finished, click **Next**.

## Downloading the Structural SDK JAR file

On the **Download SDK** tab of the SDK setup panel, to download the Structural SDK JAR file, click  **Download the JAR**.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FIN3JyftCVL3wZpsHiuRo%2FSparkSDK_SetupDownload.png?alt=media&#x26;token=0045aa6c-7324-4aeb-8d27-d418cd48d525" alt=""><figcaption></figcaption></figure>

Place the JAR file on the Spark master node. Your Spark jobs must include this JAR file.

You can optionally include the SDK as a Maven dependency. To display the repository entries for the Spark SDK, On the **Download SDK** tab, click **Maven**.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FsfRoiSwKeyFMVq2jLeLR%2FSparkSDK_SetupDownloadMaven.png?alt=media&#x26;token=6d3ddd74-af16-4410-ab77-8a6b1056257e" alt=""><figcaption><p>Maven dependency entries for the Spark SDK</p></figcaption></figure>
