OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.3.5

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.3.5
    iconOceanBase Database
    SQL - V 4.3.5
    SQL
    KV
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Integrate Linkis with OceanBase Database

    Last Updated:2026-04-09 02:53:55  Updated
    share
    What is on this page
    Prerequisites
    Submit tasks by using shell
    Submit tasks by using Linkis SDKs
    Submit OceanBase tasks through the Linkis console
    Add an OceanBase data source
    Submit an OceanBase task
    References

    folded

    share

    Linkis is an open-source distributed computing middleware service that allows you to manage computing resources and schedule and execute tasks in a unified manner. Linkis provides an intermediate layer for data processing applications such as Apache Spark, Hadoop, and TensorFlow to interact with data storage and computing resources.

    Linkis V3.1.2 supports OceanBase Database. This topic describes how to submit a task to OceanBase Database from Linkis to implement the integration between Linkis and OceanBase Database. OceanBase Database is compatible with most features and statements of MySQL 5.7. You can use an OceanBase database as a MySQL database.

    Prerequisites

    Before you integrate Linkis with OceanBase Database, make sure that the following conditions are met:

    • You have deployed OceanBase Database. For more information, see Quick experience.
    • You have deployed Linkis. For more information, see Quick Deployment.

    Submit tasks by using shell

     sh ./bin/linkis-cli -engineType jdbc-4 -codeType jdbc -code "show tables" -submitUser hadoop -proxyUser hadoop -runtimeMap wds.linkis.jdbc.connect.url=jdbc:mysql://${ip}:${port}/${db_name} -runtimeMap wds.linkis.jdbc.driver=com.mysql.jdbc.Driver -runtimeMap wds.linkis.jdbc.username=${username} -runtimeMap wds.linkis.jdbc.password=${password}
    

    Submit tasks by using Linkis SDKs

    Linkis provides SDKs for Java and Scala to submit tasks to the Linkis server. For more information, see Linkis SDK Manual. For OceanBase tasks, you need to modify only the EngineConnType and CodeType parameters in Demo:

    Map<String, Object> labels = new HashMap<String, Object>();
    labels.put(LabelKeyConstant.ENGINE_TYPE_KEY, "jdbc-4"); // required engineType Label
    labels.put(LabelKeyConstant.USER_CREATOR_TYPE_KEY, "hadoop-IDE");// required execute user and creator
    labels.put(LabelKeyConstant.CODE_TYPE_KEY, "jdbc"); // required codeType
    

    Submit OceanBase tasks through the Linkis console

    Add an OceanBase data source

    1. Log in to the Linkis console.

    2. In the left-side navigation pane, click DataSource Management.

    3. On the DataSource Management page, click Add Source in the upper-right corner.

    4. In the New Data Source dialog box, select MySQL for Data Source Type.

    5. Configure the following parameters.

      Parameter Description
      DataSource Name The identifier of the data source.
      Host The IP address of the host where OceanBase Database is deployed.
      Port The port number of the host where OceanBase Database is deployed.
      Username The username of the account for connecting to OceanBase Database.
      Password The password of the account.
    6. Click Test Connection to check whether Linkis can connect to OceanBase Database and whether the specified username and password are valid.

    7. After the test is passed, click Complete.

    8. Publish the data source.

      On the DataSource Management page, find the created OceanBase data source and click the version number in the Version column. In the EditVersion list dialog box, click Publish.

    Submit an OceanBase task

    Submit an OceanBase task by specifying the data source name.

    Request URL: http://${gateway_url}:${port}/api/rest_j/v1/entrance/submit

    Method: POST

    Request parameters:

    {
        "executionContent": {
            "code": "show databases",
            "runType": "jdbc"
        },
        "params": {
            "variable": {},
            "configuration": {
                "startup": {},
                "runtime": {
                    "wds.linkis.engine.runtime.datasource": "ob-test"
                }
            }
        },
        "labels": {
            "engineType": "jdbc-4"
        }
    }
    

    Response:

    {
        "method": "/api/entrance/submit",
        "status": 0,
        "message": "OK",
        "data": {
            "taskID": 93,
            "execID": "exec_id018017linkis-cg-entrance000830fb1364:9104IDE_hadoop_jdbc_0"
        }
    }
    

    References

    For more information, see the following topics in the Linkis documentation:

    • Linkis 1.3.2 Integration with OceanBase
    • Data Source Manual

    Previous topic

    DolphinScheduler
    Last

    Next topic

    Superset
    Next
    What is on this page
    Prerequisites
    Submit tasks by using shell
    Submit tasks by using Linkis SDKs
    Submit OceanBase tasks through the Linkis console
    Add an OceanBase data source
    Submit an OceanBase task
    References