Faker connector

The Faker connector can be used a source to generate random data. To use the Faker connector, you need to specify the usage The Datagen connector is useful when you want to experiment and try out SQL Stream Builder or to test your SQL queries using random data.

Template: faker
You do not need to provide any type of information when using the Datagen connector and template.
Type: source
The following fields are mandatory to use the connector:
  • fields.#.expression: The Java Faker expression to generate the values for a specific field. For more information about the list and use of the Faker expressions, see the flink-faker documentation.

Using the Faker connector

You can access and import the templates of the Datagen connector from Streaming SQL Console:

  1. Navigate to the Streaming SQL Console.
    1. Go to your cluster in Cloudera Manager.
    2. Click on SQL Stream Builder from the list of Services.
    3. Click on the SQLStreamBuilder Console.

      The Streaming SQL Console opens in a new window.

  2. Click Create Job or select a previous job on the Getting Started page.
  3. Click Templates at the SQL Editor.
  4. Select the Faker template.
  5. Provide information to the mandatory fields of the template.
  6. Click Execute.