Adding a new connector

Register a connector to use a Flink connector that the engine does not include. You provide the JAR file of the connector and the properties that its template contains.

  • You must be a Cloudera SQL Stream Builder (SSB) administrator.
  • The Cloudera Streaming Analytics engine instance must have a bucket bound to its default purpose. For more information, see Preparing storage for Cloudera Streaming Analytics.
  • You must have a JAR file of the connector that includes its dependencies, and know the factory identifier of the connector. The identifier is the value of the connector option in a CREATE TABLE statement. It is defined in the class that implements org.apache.flink.table.factories.Factory, which is listed in the META-INF/services directory of the JAR file.
  1. In the Streaming SQL Console, click Projects in the left navigation pane, and click the name of your project.
    The project opens, with the Explorer panel on the left. To open the Streaming SQL Console, see Accessing Cloudera SQL Stream Builder.
  2. In the Explorer, expand External Resources.
  3. Click the New Connector icon next to Connectors.
    The Data Connector window opens, on the General tab.
  4. In Type, enter the factory identifier of the connector.
    The value must match a factory identifier in the JAR file. It is not a display name. SSB does not create the connector if the identifier is not in the file.
  5. Under Supported Formats, turn on each data format that the connector supports.
    The templates of the connector then contain one entry for each format.
  6. In JAR File, click Upload JAR, and select the JAR file.
  7. Click the Properties tab.
  8. For each property of the connector, add a row, and enter the following:
    • Name: The name of the option, for example url.
    • Default Value: The value that the template contains.
    • Description: A short description. The template includes it as a comment.
    • Required: Select it if every table must set the option.
  9. Click Create.
    The connector is listed under Connectors in the Explorer, with the other connectors.

To check the connector, open a job and open the Templates menu of the SQL editor. The type of the new connector is in the list. For more information, see Using connector templates.

To change a connector that you registered, click its name under Connectors, and click Edit. To delete it, open the menu of the connector under Connectors, and click Delete. A packaged connector opens in a read-only view and has no Edit button.