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 Service

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 Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Cloud

  • Overview
  • Schema evolution
    • Liquibase
    • Flyway
  • Data ingestion
    • Canal
    • dbt
    • Debezium
    • Flink
    • Glue
    • Informatica Cloud
    • Kafka
    • Maxwell
    • SeaTunnel
    • DataWorks
    • NiFi
  • SQL development
    • DataGrip
    • DBeaver
    • Navicat
    • TablePlus
  • Orchestration
    • DolphinScheduler
    • Linkis
    • Airflow
  • Visualization
    • Grafana
    • Power BI
    • Quick BI
    • Superset
    • Tableau
  • Observability
    • Datadog
    • Prometheus
  • Database management
    • Bytebase
  • AI
    • LlamaIndex
    • Dify
    • LangChain
    • Tongyi Qianwen
    • OpenAI
    • n8n
    • Trae
    • SpringAI
    • Cline
    • Cursor
    • Continue
    • Toolbox
    • CamelAI
    • Firecrawl
    • Hugging Face
    • Ollama
    • Google Gemini
    • Cloudflare Workers AI
    • Qoder
    • OpenCode
    • Claude Code
    • GitHub Copilot
    • Codex
    • Jina AI
    • Augment Code
    • Claude Code
    • Kiro
  • Development tools
    • Cloudflare Workers
    • Vercel

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Cloud

Integrate OceanBase Cloud with Apache NiFi

Last Updated:2026-09-04 07:03:30

Prerequisites
Step 1: Configure NiFi runtime environment
Step 2: Configure dataflow pipeline
Step 3: Verify data synchronization

Apache NiFi is an automated dataflow processing platform that enables efficient and reliable data transfer between systems. By reading OceanBase Cloud's Binlog data, you can distribute data to various destinations including file systems, message queues (e.g., Kafka), or HTTP endpoints.

Prerequisites

  1. You have registered an OceanBase Cloud account and created the following resources:

    • created an instance with a tenant in the MySQL compatible mode. For details, see Create an instance and Create a tenant.

    • Created a database and user account. For details, see Create a database and Create an account.

    • Enabled Binlog service for the MySQL-compatible tenant. For details, see Enable the Binlog service.

  2. The NiFi server IP has been added to the OceanBase Cloud cluster instance allowlist. For details, see Set allowlist groups.

  3. The Java Development Kit (JDK) 1.8 or later is installed.

  4. You have downloaded the Apache NiFi installation package.

Step 1: Configure NiFi runtime environment

  1. Extract the NiFi installation package to your target directory.

  2. Modify the conf/nifi.properties configuration file as follows (using HTTP connection as example):

    # Disable HTTPS and configure HTTP access
    nifi.web.https.host=
    nifi.web.https.port=
    nifi.web.http.host=0.0.0.0
    nifi.web.http.port=<custom_port_number>
    
    # Allow insecure remote connections
    nifi.remote.input.secure=false
    
  3. Upload the MySQL driver to your NiFi server.

  4. Execute the following commands in the NiFi installation directory. Use bin/nifi.sh stop to stop the service.

    # Start service
    bin/nifi.sh start
    

Step 2: Configure dataflow pipeline

  1. Access the NiFi console at http://<nifi_server_ip>:<port>/nifi/ through your browser.

  2. Configure CaptureChangeMySQL Processor:

    1. Drag the Processor icon from the top toolbar to the canvas, search for and select CaptureChangeMySQL, then click ADD.

      1

    2. Right-click the CaptureChangeMySQL Processor and select Configure. Under the PROPERTIES tab, set these parameters and click APPLY:

      Property
      Description
      MySQL Nodes OceanBase Cloud instance address and port
      MySQL Driver Class Name JDBC driver class: com.mysql.cj.jdbc.Driver
      MySQL Driver Location Directory containing the driver JAR file
      Username Database username you created
      Password Database user password
      Database/Schema Name Pattern Database to capture Binlog from (supports regex)
      Table Name Pattern Tables to capture Binlog from (supports regex)
      Include DDL Events Set to true to capture DDL changes

      2

  3. Configure PutFile Processor:

    1. Drag another processor to the canvas, search for and select PutFile, then click ADD.

    2. Right-click the PutFile Processor and select Configure. Under PROPERTIES, set the Directory property where Binlog files will be output. Click APPLY.

      3

  4. Establish dataflow connection:

    1. On the canvas, click the arrow on CaptureChangeMySQL and connect it to PutFile.

    2. In the Create Connection dialog, click ADD.

    3. Right-click the PutFile Processor and select Configure. Under RELATIONSHIPS, set both failure and success to terminate. Click APPLY.

      4

  5. Start the dataflow:

    1. Right-click the CaptureChangeMySQL Processor and select Start.

    2. Similarly, right-click the PutFile Processor and select Start.

Step 3: Verify data synchronization

  1. Insert test data into your OceanBase Cloud database.

  2. Verify files are generated in the PutFile directory.

    5

  3. Inspect file contents to view the captured SQL statement information.

    6

Previous topic

DataWorks
Last

Next topic

DataGrip
Next
on this page
Prerequisites
Step 1: Configure NiFi runtime environment
Step 2: Configure dataflow pipeline
Step 3: Verify data synchronization