Import a project from a Git repository to create a project in the Streaming SQL
Console. Use it to move a project from another deployment, or to restore a version that you
pushed earlier.
The repository must contain a project that Cloudera SQL Stream Builder (SSB)
pushed to Git. Each project is in a folder named after the project. SSB clones the
repository, checks out the branch, and imports the resources from the folder of the
project.
The Cloudera Streaming Analytics engine instance must be able to reach the Git server.
In the Streaming SQL Console, click Projects in the left
navigation pane.
In the Project List, click Import.
The Import Project window opens.
In Clone URL, enter the URL of the
repository.
For example,
https://git.example.com/team/ssb-projects.git for HTTPS, or
git@git.example.com:team/ssb-projects.git for SSH.
In Branch, enter the branch to import from, for example,
main.
In Project, enter the name of the project folder in the
repository.
Optional: Optional: Turn on
Allow deletions on import.
When this option is on, an import deletes the
jobs, tables, data sources, and user-defined functions of the project that are not in the
repository. A job that is running is not deleted. When it is off, an import keeps
them.
If the repository requires authentication, turn on
Authentication, and select a Method.
BASIC: Enter a Username and a
Password. For GitHub, use a personal access token with the
repo scope as the password.
SSH: Paste the Private Key, or click
Upload SSH Private Key. Optional: Enter the
Public Key, or click Upload SSH Public
Key, and enter the Passphrase for Private
Key.
Click Import.
The import results are displayed as a tree of the imported resources.
Click Close, or click New Import to import
another project.
The project is displayed in the Project List.
Environments are not imported. Create the environments that the project needs, and
activate one. See Managing project environments.
Project files are not exported to Git, so they are not imported. Upload the project files
that jobs and data sources reference. See Managing project files.