OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilot

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilot
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Database

  • Overview of the ecosystem
  • ORM frameworks
    • Java
      • Spring Boot
      • Spring Batch
      • Use Spring JDBC to connect to OceanBase Database
      • Spring Data JPA
      • Hibernate
      • MyBatis
      • jOOQ
    • Python
      • Use SQLAlchemy to connect to OceanBase Database
      • Connect to OceanBase Database by using peewee
      • Use Tortoise ORM to connect to OceanBase Database
    • Go
      • Connect to OceanBase Database by using GORM
      • beego ORM
    • Rust
      • SeaORM Connection to OceanBase Database
      • Diesel Connection to OceanBase Database
    • Ruby
      • Active Record
      • Sequel Connection to OceanBase Database
      • Connect to OceanBase Database by using Ruby on Rails
    • Node.js
      • Sequelize
      • TypeORM
      • Prisma
      • Drizzle
    • C#
      • Dapper
      • SqlSugar
      • FreeSQL
    • PHP
      • Connect to OceanBase Database by using the Yii 2.0 ORM
      • Connect to OceanBase Database by using Laravel Eloquent ORM
      • CakePHP
  • Database version management
    • Liquibase
    • Flyway
  • Data integration
    • Flink
      • Apache Flink
      • Flink DirectLoad
      • Flink Connector OceanBase
    • dbt
    • SeaTunnel
    • Maxwell
    • Debezium
    • Spark Catalog
    • NiFi
    • Qlik Replicate
    • RisingWave CDC
    • Flume
    • Migrate data from SQL Server to OceanBase Database by using MySQL Workbench
  • SQL development
    • WebLogic
    • DBeaver
    • Navicat
    • DataGrip
    • TablePlus
    • DMS
  • Orchestration and scheduling
    • Airflow
    • PowerJob
    • DolphinScheduler
    • Linkis
  • Visualization tools
    • Superset
    • Excel
    • Power BI
    • Quick BI
    • Tableau
    • GuanData
    • vividime
    • DataV
    • Metabase
    • Redash
    • FineReport
  • Database management
    • NineData
    • Bytebase
    • DataHub
    • Zabbix
  • AI
    • OpenAI
    • Qwen
    • LangChain
    • LlamaIndex
    • Dify
    • n8n
    • Trae
    • SpringAI
    • Cline
    • Cursor
    • Continue
    • MCP Toolbox
    • CamelAI
    • Firecrawl
    • Hugging Face
    • Ollama
    • Google Gemini
    • Cloudflare Workers AI
    • DB GPT
    • Jina AI
    • Augment Code
    • Claude Code
    • Kiro
    • GPT4All
  • Application
    • Ghost
    • Jira
    • Seata
    • SAP Crystal Reports
  • Middleware
    • Apache Pulsar

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Database
  3. master

Integrate PowerJob with OceanBase Database

Last Updated:2026-09-04 07:40:45

Prerequisites
Procedure
Step 1: Download PowerJob
Step 2: Configure the OceanBase Database connection
Step 3: Import the PowerJob project into an IDE
Step 4: Start PowerJob Server
References

PowerJob is a distributed task scheduling platform that supports OceanBase Database as its metadata storage backend.

This topic describes how to configure PowerJob to use OceanBase Database as the backend database and schedule various types of tasks.

Prerequisites

  • Installed Java 8 or later.
  • Deployed OceanBase Database 4.0 or later.

Procedure

Step 1: Download PowerJob

Run the following command to download PowerJob:

git clone https://github.com/PowerJob/PowerJob.git

Step 2: Configure the OceanBase Database connection

  1. Create an OceanBase database and user:

    -- Create the database
    CREATE DATABASE powerjob_db;
    
    -- Create the user
    CREATE USER 'powerjob'@'%' IDENTIFIED BY 'your_password';
    
    -- Grant privileges
    GRANT ALL ON powerjob_db.* TO 'powerjob'@'%';
    
  2. In the PowerJob Server subproject, edit the daily environment configuration file application-daily.properties to configure the OceanBase Database connection:

    # Database driver
    spring.datasource.core.driver-class-name=com.mysql.cj.jdbc.Driver
    # Database connection
    spring.datasource.core.jdbc-url=jdbc:mysql://your_host:2881/powerjob_db?useUnicode=true&characterEncoding=UTF-8
    # Database username
    spring.datasource.core.username=powerjob
    # Database password
    spring.datasource.core.password=your_password
    # Connection pool configuration
    spring.datasource.core.maximum-pool-size=20
    spring.datasource.core.minimum-idle=5
    

Step 3: Import the PowerJob project into an IDE

  1. Open a Java IDE such as IntelliJ IDEA or Eclipse.
  2. Select Import Project or Open Project, navigate to the downloaded PowerJob directory, and follow the IDE wizard to complete the project import and dependency loading.

Step 4: Start PowerJob Server

  1. In the IDE, run the entry class tech.powerjob.server.PowerJobServerApplication.
  2. After startup, open a browser and go to http://localhost:7700 to access the PowerJob management console.

References

  • PowerJob official documentation
  • OceanBase documentation

Previous topic

Airflow
Last

Next topic

DolphinScheduler
Next
on this page
Prerequisites
Procedure
Step 1: Download PowerJob
Step 2: Configure the OceanBase Database connection
Step 3: Import the PowerJob project into an IDE
Step 4: Start PowerJob Server
References