Importing a project

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.

  1. In the Streaming SQL Console, click Projects in the left navigation pane.
  2. In the Project List, click Import.
    The Import Project window opens.
  3. 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.
  4. In Branch, enter the branch to import from, for example, main.
  5. In Project, enter the name of the project folder in the repository.
  6. 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.
  7. 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.
  8. Click Import.
    The import results are displayed as a tree of the imported resources.
  9. 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.