Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using Flink/ Managing FlinkServer Jobs/ Interconnecting FlinkServer Job Dependencies with OBS
Updated on 2026-06-27 GMT+08:00

Interconnecting FlinkServer Job Dependencies with OBS

Scenario

FlinkServer allows you to upload JAR packages to OBS under the Job Management, UDF Management, and Dependency Management modules and submit jobs using the JAR packages stored in OBS.

Notes and Constraints

  • JAR packages can be uploaded to either OBS or HDFS. Uploading to both OBS and HDFS simultaneously is not supported.
  • The OBS path is configured globally and cannot be set individually for each job.
  • The OBS path must be configured in advance. You cannot submit jobs using the HDFS path and later switch to the OBS path.
  • When FlinkServer uploads JAR packages to the OBS path, sub-paths are automatically created. Allocate a dedicated OBS path for FlinkServer.
  • The OBS interconnection function does not support job import/export.
  • This section applies only to MRS 3.6.0-LTS and later.

Configuring the OBS Path

  1. Log in to MRS Manager.
  2. Choose Cluster > Services > Flink, and click Configurations and then All Configurations.
  3. Search for flinkserver.upload.jar.obspath, enter the OBS path, and click Save.

    The OBS Path can contain digits, uppercase and lowercase letters, periods (.), hyphens (-), and underscores (_), and must start with a digit or a letter. All characters must be English single-byte (SBC) symbols.

    If you are accessing OBS in Guardian mode, perform the following steps:

    1. Choose Cluster > Services > Flink, click Configurations and then All Configurations, and then choose FlinkServer(Role).
    2. Search for flink.customized.configs and add the following custom parameter:
      • Parameter: security.kerberos.access.hadoopFileSystems
      • Value: File system path (for example, hdfs://hacluster;obs://guardian-obs)
    3. Click Save.

  4. Click the Instances tab to go to the instance management page and restart the affected FlinkServer instance.

Uploading a JAR Package to the OBS Path Under the Job Management Module

  • After the OBS path is configured using the flinkserver.upload.jar.obspath parameter, you can upload the JAR package to the specified OBS directory under the Job Management module. This directory is displayed as the OBS path on the page.

  • You can submit a job using a JAR package stored in the configured OBS path.

Uploading a JAR Package to the OBS Path Under the UDF Management Module

  • After the OBS path is configured using the flinkserver.upload.jar.obspath parameter, you can upload the JAR package to the specified OBS directory under the UDF Management module. This directory is displayed as the OBS path on the page.

  • For details about how to use UDFs, see Using UDFs in FlinkServer Jobs.

Uploading a JAR Package to the OBS Path Under the Dependency Management Module

  • After the OBS path is configured using the flinkserver.upload.jar.obspath parameter, you can upload the JAR package to the specified OBS directory under the Dependency Management module. This directory is displayed as the OBS path on the page.

  • For details about dependency management, see Adding Third-Party Dependency JAR Packages to a FlinkServer Job.
  • If the flinkserver.upload.jar.obspath parameter is configured, only an OBS path can be entered in the Specify Path field under dependency management. If the parameter is not configured, only an HDFS path is allowed.