Updated on 2024-11-29 GMT+08:00

Importing and Exporting Jobs

Scenario

The FlinkServer web UI enables you to import and export jobs, UDFs, stream tables, and dependencies only.

  • Jobs, flow tables, and UDFs with the same name cannot be imported to the same cluster.
  • When exporting a job, you need to manually select the stream tables, UDFs, and dependencies. Otherwise, a dialog box indicating that the dependent data is not selected will be displayed. The application information of a job will not be exported.
  • When you export a stream table, the application information on which the stream table depends will not be exported.
  • When you export UDFs, the application information on which the UDFs depend and information about jobs used by UDFs will not be exported.
  • When you export dependencies, the application information required by the dependencies and information about the jobs used by the dependencies will not be exported.
  • Data import and export between different applications. are supported.

    When you import or export FlinkSQL jobs, the password field in the jobs will be left blank to meet security requirements. Before you submit jobs, manually enter the password.

Importing a Job

  1. Access the Flink web UI as a user with FlinkServer Admin Privilege. For details, see Accessing the Flink Web UI.
  2. Choose System Management > Import Jobs.
  3. Click Select to select a local TAR file and click OK. Wait until the file is imported.

    The maximum size of a local TAR file to be uploaded is 200 MB.

Exporting a job

  1. Access the Flink web UI as a user with FlinkServer Admin Privilege. For details, see Accessing the Flink Web UI.
  2. Choose System Management > Export Jobs.
  3. Select the data to be exported in either of the following ways. To deselect the content, click Clear Selected Node.

    • Select the data to be exported as required.
    • Click Query Regular Expression. On the displayed page, select the type of the data to be exported (Table Management, Job Management, UDF Management, or Dependency Management), enter the keyword, and click Query. After the data is successfully matched, click Synchronize.

      All matched data will be synchronized after you click Synchronize. Currently, you cannot select some data for synchronization.

  4. Click Verify. After the verification is complete, click OK. Wait until the data is exported.