Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:4paradigm OpenMLDB openmldb tool

From Leeroopedia
Knowledge Sources
Domains DevOps, Testing
Last Updated 2026-10-12 12:00 GMT

Overview

External CLI tool for verifying OpenMLDB cluster status, inspecting tables, running tests, and performing static checks.

Description

The openmldb_tool is a Python SDK utility (external to this repo snapshot) that provides comprehensive cluster verification capabilities. After demo scenarios complete, it checks all offline job states, compares cluster status against a hosts configuration file, inspects table health, runs integration tests, and performs static configuration checks. It is the final verification step in the demo Docker Compose pipeline.

Usage

Use this tool after running demo scenarios to verify that all jobs completed successfully, all tables are healthy, and the cluster configuration matches expectations. Requires a hosts configuration file at /work/openmldb/conf/hosts.

Code Reference

Source Location

  • Repository: OpenMLDB (usage references)
  • File: demo/docker-compose.test.yml (L73-77), demo/README.md (L20-21)

External Reference

  • openmldb_tool is part of the OpenMLDB Python SDK package

Signature

# Status check with diff against hosts file
openmldb_tool status --diff -f <hosts_file>

# Inspect cluster tables and health
openmldb_tool inspect

# Run integration tests
openmldb_tool test

# Static configuration check
openmldb_tool static-check --conf_file=<hosts_file> -VCL --local

Import

# openmldb_tool is installed as part of the OpenMLDB Python SDK
pip install openmldb
# Then use directly:
openmldb_tool status --diff -f /work/openmldb/conf/hosts

I/O Contract

Inputs

Name Type Required Description
hosts file file Yes (status/static-check) Cluster hosts configuration at /work/openmldb/conf/hosts
--diff flag No (status) Compare status against hosts file
-VCL flag No (static-check) Static check flags
--local flag No (static-check) Run checks locally
--conf_file path Yes (static-check) Configuration file path

Outputs

Name Type Description
status report text Cluster status comparison result
inspection report text Table health and partition inspection
test results text Integration test pass/fail summary
static check report text Configuration validation results

Usage Examples

Full Verification Pipeline

# Run all verification steps after demo scenarios
cd /work

# 1. Check cluster status against hosts file
openmldb_tool status --diff -f /work/openmldb/conf/hosts

# 2. Inspect tables and health
openmldb_tool inspect

# 3. Run integration tests
openmldb_tool test

# 4. Static configuration check
openmldb_tool static-check --conf_file=/work/openmldb/conf/hosts -VCL --local

Related Pages

Implements Principle

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment